def test_lower_case_changed_to_upper(self): self.assertEqual(parsers.parse_first_word(" war and Peace"), "WAR")
def test_white_space_removed(self): self.assertEqual(parsers.parse_first_word(" War and Peace"), "WAR")
def test_None(self): self.assertIsNone(parsers.parse_first_word(None), None)
def test_first_number(self): self.assertEqual(parsers.parse_first_word("365 days"), None)
def test_empty_string(self): self.assertIsNone(parsers.parse_first_word(""), None)