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