def test_description_exists_is_false_when_description_not_exists(): serializer = TrelloCardSerializer() item = serializer.feature_to_array('''\nFeature: example\n\n @trello-1234\n\n\n Scenario:\n\n Given i like to boogie\n\n\n''') expected_result = False result = serializer.description_exists(item) assert result == expected_result
def test_description_exists_raise_exception_when_params_is_empty(): item = '' serializer = TrelloCardSerializer() with pytest.raises(IndexError): serializer.description_exists(item)