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
def test_match(self, data, postcode, first, second): assert pattern.match(data) is None
def test_groups(self, data, postcode, first, second): super().test_groups(data, postcode, first, second) assert pattern.match(data).group('girobank') == postcode