From 820492f9a9642df84187e7f44d69421451de6a03 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 30 Jul 2015 08:13:27 -0700 Subject: [PATCH] Adding version test. --- atticmatic/tests/integration/test_version.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 atticmatic/tests/integration/test_version.py diff --git a/atticmatic/tests/integration/test_version.py b/atticmatic/tests/integration/test_version.py new file mode 100644 index 0000000..e5ba486 --- /dev/null +++ b/atticmatic/tests/integration/test_version.py @@ -0,0 +1,8 @@ +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