

def test_repr_has_all_fields(self):
    details = AddressDetails({
        'street_address': '123 First St',
        'region': 'Las Vegas',
        'locality': 'NV',
        'postal_code': '89913',
    })
    regex = "<AddressDetails {street_address: '123 First St', locality: 'NV', region: 'Las Vegas', postal_code: '89913'} at \\w+>"
    matches = re.match(regex, repr(details))
    self.assertTrue(regex)

dataset/ETHPy150Open braintree/braintree_python/tests/unit/test_address_details.py TestAddressDetails.test_repr_has_all_fields/VarMisuse@61/150 `matches`->`regex`