def test_enter_non_existing_abbreviation(self): with pytest.raises(UnKnownResponseTypeAbbreviation): convert_abbreviation_to_response_type("QQQ")
def test_enter_correct_response_type_abbreviation(self, abbreviation): response_type = convert_abbreviation_to_response_type(abbreviation) abbreviation_result = convert_response_type_to_abbreviation(response_type) assert abbreviation == abbreviation_result