From: Chris Lamb Date: Tue, 27 Oct 2009 13:00:50 +0000 (+0000) Subject: Add unittest.main() to test_regexes. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da8f3abe7a48d0f2a8ccdb92bca064eeaccfaa50;p=dak Add unittest.main() to test_regexes. Signed-off-by: Chris Lamb --- diff --git a/tests/test_regexes.py b/tests/test_regexes.py index 05ef8a62..32fd4c1d 100755 --- a/tests/test_regexes.py +++ b/tests/test_regexes.py @@ -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()