def test_library_or_resource_changed_should_return_true_when_library_changed( self): collection2 = copy.deepcopy(EXPECTED_COLLECTION) collection2["version"] = "1.2.4" result = RfhubImporter._library_or_resource_changed( EXPECTED_COLLECTION, collection2) self.assertTrue(result)
def test_library_or_resource_changed_should_return_true_when_resource_unchanged( self): EXPECTED_COLLECTION["type"] = "resource" collection2 = copy.deepcopy(EXPECTED_COLLECTION) result = RfhubImporter._library_or_resource_changed( EXPECTED_COLLECTION, collection2) self.assertFalse(result)
def test_library_or_resource_changed_should_return_false_when_library_unchanged( self): result = RfhubImporter._library_or_resource_changed( EXPECTED_COLLECTION, EXPECTED_COLLECTION) self.assertFalse(result)