def test_venue_status_parser_given_invalid_value_raises_value_error(self): # Arrange # Act # Assert with pytest.raises(ValueError): VenueStatusParser.to_str_py(0) with pytest.raises(ValueError): VenueStatusParser.from_str_py("")
def test_venue_status_from_str(self, string, expected): # Arrange # Act result = VenueStatusParser.from_str_py(string) # Assert assert expected == result