def test_correct_subtopic_models(self):
    subtopic_page = subtopic_models.SubtopicPageModel(id=self.SUBTOPIC_ID, topic_id=self.TOPIC_ID, page_contents={}, page_contents_schema_version=1, language_code='en')
    subtopic_page.commit(self.albert_id, 'subtopic model created', self.DUMMY_COMMIT_CMDS)
    actual_output = self._run_one_off_job()
    expected_output = [['FOUND COMMIT LOGS - SubtopicPageSnapshotMetadataModel', 1], ['FOUND PARENT MODEL - SubtopicPageSnapshotMetadataModel', 1]]
    self.assertItemsEqual(expected_output, actual_output)
def test_correct_subtopic_models(self):
    subtopic_page = subtopic_models.SubtopicPageModel(id=self.SUBTOPIC_ID, topic_id=self.TOPIC_ID, page_contents={}, page_contents_schema_version=1, language_code='en')
    subtopic_page.commit(self.albert_id, 'subtopic model created', self.DUMMY_COMMIT_CMDS)
    actual_output = self._run_one_off_job()
    expected_output = [['FOUND COMMIT LOGS - SubtopicPageSnapshotMetadataModel', 1], ['FOUND PARENT MODEL - SubtopicPageSnapshotMetadataModel', 1]]
    self.assertItemsEqual(expected_output, actual_output)