def test_clean_legacy_id(self): """ Check _legacy_id field is clean :return: """ left = ResourceGroup._get_collection().find_one({ "_legacy_id": { "$exists": True } }) assert left is None, "_legacy_id field has been left by migration"
def test_clean_leagacy_id(): left = ResourceGroup._get_collection().find_one( {"_legacy_id": { "$exists": True }}) assert left is None, "_legacy_id field has been left by migration"