From: Chris Lamb Date: Tue, 27 Oct 2009 19:43:57 +0000 (+0000) Subject: Simple check for lintian regex X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ea5851aede1437678376751dc6a78bd589f8c00b;p=dak.git Simple check for lintian regex --- diff --git a/tests/test_regexes.py b/tests/test_regexes.py index 7c43d097..9187a541 100755 --- a/tests/test_regexes.py +++ b/tests/test_regexes.py @@ -29,3 +29,12 @@ 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')) + +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') + )