def test_contains_nonempty_text_with_valid_text(self): question = Question(question = 'Who will win the 2016 Presidential election?') self.assertTrue(question.contains_nonempty_text())
def test_contains_nonempty_text_with_empty_text(self): question = Question(question = '') self.assertFalse(question.contains_nonempty_text())