def test_is_district_id_valid_when_invalid_district_id_raises_exception(): # Arrange district_id = 1 storage = DistrictStorageImplementation() # Act with pytest.raises(InvalidDistrictId): storage.is_district_id_valid(district_id=district_id)
def test_is_district_id_valid_when_valid_district_id(states, districts): # Arrange district_id = 1 storage = DistrictStorageImplementation() # Act result = storage.is_district_id_valid(district_id=district_id) # Assert assert result == None