def test_model_with_invalid_topic(self):
    content = {'Art': {'Art': '1.0', 'invalid': '0.5'}, 'invalid': {'Art': '0.5', 'invalid': '1.0'}}
    self.model_instance.content = content
    self.model_instance.put()
    expected_output = [u'[u\'failed validation check for topic similarity check of TopicSimilaritiesModel\', [u"Entity id topics: Topic similarity validation for content: {u\'Art\': {u\'Art\': u\'1.0\', u\'invalid\': u\'0.5\'}, u\'invalid\': {u\'Art\': u\'0.5\', u\'invalid\': u\'1.0\'}} fails with error: Topic invalid not in list of known topics."]]']
    run_job_and_check_output(self, expected_output)
def test_model_with_invalid_topic(self):
    content = {'Art': {'Art': '1.0', 'invalid': '0.5'}, 'invalid': {'Art': '0.5', 'invalid': '1.0'}}
    self.model_instance.content = content
    self.model_instance.put()
    expected_output = [u'[u\'failed validation check for topic similarity check of TopicSimilaritiesModel\', [u"Entity id topics: Topic similarity validation for content: {u\'Art\': {u\'Art\': u\'1.0\', u\'invalid\': u\'0.5\'}, u\'invalid\': {u\'Art\': u\'0.5\', u\'invalid\': u\'1.0\'}} fails with error: Topic invalid not in list of known topics."]]']
    run_job_and_check_output(self, expected_output)