self.assertEqual(self.MATCH(': ::').groups(), ('', '::'))
self.assertEqual(self.MATCH('Foo::bar').groups(), ('Foo', ':bar'))
self.assertEqual(self.MATCH('Foo: :bar').groups(), ('Foo', ':bar'))
+
+class re_parse_lintian(unittest.TestCase):
+ MATCH = regexes.re_parse_lintian.match
+
+ def testSimple(self):
+ self.assertEqual(
+ self.MATCH('W: tzdata: binary-without-manpage usr/sbin/tzconfig').groups(),
+ ('W', 'tzdata', 'binary-without-manpage', 'usr/sbin/tzconfig')
+ )