[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 04/16] Simple check for lintian regex



---
 tests/test_regexes.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/tests/test_regexes.py b/tests/test_regexes.py
index 7c43d09..9187a54 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')
+        )
-- 
1.6.3.3



Reply to: