Пример #1
0
 def test_groups(self, data, postcode, first, second):
     assert pattern.match(data).group('postcode') == postcode
     assert pattern.match(data).group('first') == first
     assert pattern.match(data).group('second') == second
Пример #2
0
 def test_match(self, data, postcode, first, second):
     assert pattern.match(data) is None
Пример #3
0
    def test_groups(self, data, postcode, first, second):
        super().test_groups(data, postcode, first, second)

        assert pattern.match(data).group('girobank') == postcode