borgmatic/atticmatic/tests/integration/test_version.py

9 lines
249 B
Python
Raw Normal View History

2015-07-30 17:13:27 +02:00
import subprocess
def test_setup_version_matches_news_version():
setup_version = subprocess.check_output(('python', 'setup.py', '--version')).decode('ascii')
news_version = open('NEWS').readline()
assert setup_version == news_version