Brian Mearns  committed c9fedd9

Some more tests, but not implemented.

  • Participants
  • Parent commits 17fd624
  • Branches default

Comments (0)

Files changed (1)

File test/

 Tests for distribution. Should be run from the top level project directory.
+from nose.plugins.attrib import attr
 import re
 import os
 import sys
 changes_heading_re = re.compile(r'^Rel\s+(?P<release>\d+)\s+- v(?P<M>\d+).(?P<n>\d+).(?P<p>\d+).(?P<s>\d+) - (?P<year>\d\d\d\d)-(?P<month>\d\d)-(?P<day>\d\d)\s*$')
+#TODO: Figure out an automated way to determine whether or not this is a release, to choose between the next two tests.
+def test_empty_tag():
+    assert(pytek.version.TAG is None)
+def test_not_empty_tag():
+    assert(pytek.version.TAG is not None)
 def test_changes_dot_txt_top_version():
     with open("CHANGES.txt", "r") as changes:
         for line in changes: