def test_state(self, faker, num_samples):
    states = [state_name for (state_abbr, state_name) in EsMxAddressProvider.states]
    for _ in range(num_samples):
        state = faker.state()
        assert isinstance(state, str)
        assert (state in states)
def test_state(self, faker, num_samples):
    states = [state_name for (state_abbr, state_name) in EsMxAddressProvider.states]
    for _ in range(num_samples):
        state = faker.state()
        assert isinstance(state, str)
        assert (state in states)