def test_deep_compare_dict_list_with_changes(self): """ Tests that deep compare works for a list of dict with with changes """ self.assertFalse( deep_field_compare(dict_list_compare_with_changes_new, dict_list_compare_with_changes_current))
def test_deep_compare_dict_list_no_changes(self): """ Tests that deep compare works for a list of dict with no changes """ self.assertTrue( deep_field_compare(dict_list_compare_no_changes_new, dict_list_compare_no_changes_current))
def test_deep_compare_dict_created_only_with_changes(self): """ Tests that deep compare works for dictionary fields where other changes from DT_CREATED """ self.assertFalse( deep_field_compare(dict_compare_created_only_with_changes_new, dict_compare_created_only_with_changes_current))
def test_deep_compare_dict_modified_only_no_changes(self): """ Tests that deep compare works for dictionary fields where no changes in dict other than DT_MODIFIED """ self.assertTrue( deep_field_compare(dict_compare_modified_only_no_changes_new, dict_compare_modified_only_no_changes_current))
def test_deep_compare_dict_created_and_modified_with_changes(self): """ Tests that deep compare works for dictionary fields with changes in dict other than DT_MODIFIED / DT_CREATED """ self.assertFalse( deep_field_compare( dict_compare_created_and_modified_with_changes_new, dict_compare_created_and_modified_with_changes_current))