def test_query_no_ref_catalogue_exists(cursor, ref_id): cursor.__iter__.return_value = [] assert ref_catalogue_exists(cursor, ref_id) == False
def test_query_for_reference_ids(cursor, ref_id): cursor.__iter__.return_value = [(ref_id,),] assert ref_catalogue_exists(cursor, ref_id) == True