def test_correct_collection_models(self):
    rights_manager.create_new_collection_rights(self.COLLECTION_ID, self.albert_id)
    collection_model = collection_models.CollectionModel(id=self.COLLECTION_ID, category='category', title='title', objective='objective', collection_contents={'nodes': {}})
    collection_model.commit(self.albert_id, 'collection model created', self.DUMMY_COMMIT_CMDS)
    actual_output = self._run_one_off_job()
    expected_output = [['FOUND PARENT MODEL - CollectionRightsSnapshotMetadataModel', 1], ['FOUND COMMIT LOGS - CollectionSnapshotMetadataModel', 1], ['FOUND PARENT MODEL - CollectionSnapshotMetadataModel', 1], [('COMMIT LOGS SHOULD NOT EXIST AND DOES NOT EXIST - ' + 'CollectionRightsSnapshotMetadataModel'), 1]]
    self.assertItemsEqual(expected_output, actual_output)
def test_correct_collection_models(self):
    rights_manager.create_new_collection_rights(self.COLLECTION_ID, self.albert_id)
    collection_model = collection_models.CollectionModel(id=self.COLLECTION_ID, category='category', title='title', objective='objective', collection_contents={'nodes': {}})
    collection_model.commit(self.albert_id, 'collection model created', self.DUMMY_COMMIT_CMDS)
    actual_output = self._run_one_off_job()
    expected_output = [['FOUND PARENT MODEL - CollectionRightsSnapshotMetadataModel', 1], ['FOUND COMMIT LOGS - CollectionSnapshotMetadataModel', 1], ['FOUND PARENT MODEL - CollectionSnapshotMetadataModel', 1], [('COMMIT LOGS SHOULD NOT EXIST AND DOES NOT EXIST - ' + 'CollectionRightsSnapshotMetadataModel'), 1]]
    self.assertItemsEqual(expected_output, actual_output)