def test_not_two_letter_state(self): city = "Auburn" state = "Alabama" zip = "36830" expected = False actual = valid_city_state_zip(city, state, zip) self.assertIs(expected, actual)
def test_empty_zip(self): city = "Auburn" state = "AL" zip = "" expected = False actual = valid_city_state_zip(city, state, zip) self.assertIs(expected, actual)
def test_invalid_zip(self): city = "Auburn" state = "AL" zip = "alksdfj,xcmnvopweihrlskdjfn12345678654" expected = False actual = valid_city_state_zip(city, state, zip) self.assertIs(expected, actual)
def test_wrongcity_wrongstate_wrongzip(self): city = "Auburn" state = "CO" zip = "36830" expected = False actual = valid_city_state_zip(city, state, zip) self.assertIs(expected, actual)
def test_wrongcity_wrongstate_goodzip(self): city = "Birmingham" state = "CO" zip = "36830" expected = False actual = valid_city_state_zip(city, state, zip) self.assertIs(expected, actual)
def test_wrongcity_goodstate_wrongzip(self): city = "Birmingham" state = "AL" zip = "32845" expected = False actual = valid_city_state_zip(city, state, zip) self.assertIs(expected, actual)
def test_goodcity_goodstate_wrongzip(self): city = "Auburn" state = "AL" zip = "35004" expected = False actual = valid_city_state_zip(city, state, zip) self.assertIs(expected, actual)
def test_good_city_state_zip(self): city = "Auburn" state = "AL" zip = "36830" expected = True actual = valid_city_state_zip(city, state, zip) self.assertIs(expected, actual)