예제 #1
0
 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"
예제 #2
0
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"