def from_empty_openstack_flavor_list_test(): mordor = util.create_example_infrastructure() flavor_collection = FlavorCollection([]) converted_collection = FlavorCollection.from_openstack_flavor_list( [], mordor) assert util.json_are_equal( flavor_collection.to_dict(), converted_collection.to_dict())
def emtpy_flavor_collection_to_dict_test(): expected_dict = {"flavors":[]} flavor_collection = FlavorCollection([]) assert util.json_are_equal(expected_dict, flavor_collection.to_dict())