def test_story_is_published_validation(self): self.topic.canonical_story_references = [ topic_domain.StoryReference('story_id', 'published') ] self._assert_validation_error( 'Expected story_is_published to be a boolean')
def test_story_id_validation(self): self.topic.canonical_story_references = [ topic_domain.StoryReference(123, True) ] self._assert_validation_error('Expected story id to be a string')