def test_venue_type_parser_given_invalid_value_raises_value_error(self): # Arrange, Act, Assert with pytest.raises(ValueError): VenueTypeParser.to_str_py(0) with pytest.raises(ValueError): VenueTypeParser.from_str_py("")
def test_venue_type_from_str(self, string, expected): # Arrange # Act result = VenueTypeParser.from_str_py(string) # Assert assert expected == result
def test_venue_type_to_str(self, enum, expected): # Arrange # Act result = VenueTypeParser.to_str_py(enum) # Assert assert expected == result