def test_combined_models(self):
    exp_models.ExpSummaryModel(id='id_1', title='title', category='category', objective='objective', language_code='language_code', community_owned=False, contributor_ids=[self.USER_1_ID, self.USER_1_ID, self.USER_2_ID], contributors_summary={self.USER_2_ID: 4}).put()
    collection_models.CollectionSummaryModel(id='id_2', title='title', category='category', objective='objective', language_code='language_code', community_owned=False, contributor_ids=[self.USER_2_ID, self.USER_3_ID], contributors_summary={self.USER_1_ID: 4, self.USER_2_ID: 4}).put()
    output = self._run_one_off_job()
    self.assertEqual(len(output), 4)
    self.assertIn(['SUCCESS', 2], output)
    self.assertIn(['DUPLICATE_IDS', [('id_1', [self.USER_1_ID, self.USER_1_ID, self.USER_2_ID], {self.USER_2_ID: 4})]], output)
    self.assertIn(['MISSING_IN_SUMMARY', [('id_1', [self.USER_1_ID, self.USER_1_ID, self.USER_2_ID], {self.USER_2_ID: 4}), ('id_2', [self.USER_2_ID, self.USER_3_ID], {self.USER_1_ID: 4, self.USER_2_ID: 4})]], output)
    self.assertIn(['MISSING_IN_IDS', [('id_2', [self.USER_2_ID, self.USER_3_ID], {self.USER_1_ID: 4, self.USER_2_ID: 4})]], output)
def test_combined_models(self):
    exp_models.ExpSummaryModel(id='id_1', title='title', category='category', objective='objective', language_code='language_code', community_owned=False, contributor_ids=[self.USER_1_ID, self.USER_1_ID, self.USER_2_ID], contributors_summary={self.USER_2_ID: 4}).put()
    collection_models.CollectionSummaryModel(id='id_2', title='title', category='category', objective='objective', language_code='language_code', community_owned=False, contributor_ids=[self.USER_2_ID, self.USER_3_ID], contributors_summary={self.USER_1_ID: 4, self.USER_2_ID: 4}).put()
    output = self._run_one_off_job()
    self.assertEqual(len(output), 4)
    self.assertIn(['SUCCESS', 2], output)
    self.assertIn(['DUPLICATE_IDS', [('id_1', [self.USER_1_ID, self.USER_1_ID, self.USER_2_ID], {self.USER_2_ID: 4})]], output)
    self.assertIn(['MISSING_IN_SUMMARY', [('id_1', [self.USER_1_ID, self.USER_1_ID, self.USER_2_ID], {self.USER_2_ID: 4}), ('id_2', [self.USER_2_ID, self.USER_3_ID], {self.USER_1_ID: 4, self.USER_2_ID: 4})]], output)
    self.assertIn(['MISSING_IN_IDS', [('id_2', [self.USER_2_ID, self.USER_3_ID], {self.USER_1_ID: 4, self.USER_2_ID: 4})]], output)