def test_state_abbr(self, faker, num_samples):
    for _ in range(num_samples):
        state_abbr = faker.state_abbr()
        assert isinstance(state_abbr, str)
        states_and_territories = EnUsAddressProvider.states_and_territories_abbr
        assert (state_abbr in states_and_territories)
def test_state_abbr(self, faker, num_samples):
    for _ in range(num_samples):
        state_abbr = faker.state_abbr()
        assert isinstance(state_abbr, str)
        states_and_territories = EnUsAddressProvider.states_and_territories_abbr
        assert (state_abbr in states_and_territories)