From 6fbf2e5cc899e35b31bb32e5245c481565410acd Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Thu, 11 Oct 2012 21:32:42 +0200 Subject: [PATCH] Add tagre test. --- tests/test_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_util.py b/tests/test_util.py index dcb67be37..3a19a6705 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -68,10 +68,11 @@ class RegexTest(TestCase): ('', ValuePrefix, True), ('', ValuePrefix, True), ('', ValuePrefix[:-1], False), + ('', ValuePrefix, True), ) def test_regex(self): - matcher = re.compile(tagre("img", "src", "(%s.*)" % self.ValuePrefix)) + matcher = re.compile(tagre("img", "src", '(%s[^"]*)' % self.ValuePrefix)) for tag, value, domatch in self.TagTests: self.match_tag(matcher, tag, value, domatch)