From ea5851aede1437678376751dc6a78bd589f8c00b Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 27 Oct 2009 19:43:57 +0000 Subject: [PATCH] Simple check for lintian regex --- tests/test_regexes.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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') + ) -- 2.39.2