]> err.no Git - dak/commitdiff
Add unittest.main() to test_regexes.
authorChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 13:00:50 +0000 (13:00 +0000)
committerChris Lamb <lamby@debian.org>
Tue, 27 Oct 2009 13:00:50 +0000 (13:00 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
tests/test_regexes.py

index 05ef8a6265cd2c95efdd6cecc3baeb3e77b20c43..32fd4c1d9e69604903f47b50bc5a3260e0c9d987 100755 (executable)
@@ -31,3 +31,6 @@ class re_single_line_field(unittest.TestCase):
         self.assertEqual(self.MATCH(': ::').groups(), ('', '::'))
         self.assertEqual(self.MATCH('Foo::bar').groups(), ('Foo', ':bar'))
         self.assertEqual(self.MATCH('Foo: :bar').groups(), ('Foo', ':bar'))
+
+if __name__ == '__main__':
+    unittest.main()