def test_standardize_both(self) : input_str = ' The first letter of the first word of this test input should be lower case' ret_str = ask.standardize(input_str) self.assertTrue(ret_str[0] == 't')
def test_standardize_standardized(self) : input_str = 'this sentence is already standardized so standardize() should have no effect' ret_str = ask.standardize(input_str) self.assertTrue(input_str == ret_str)
def test_standardize_whitespace(self) : input_str = ' test input with leading and trailing whitespace ' ret_str = ask.standardize(input_str) self.assertTrue(ret_str == input_str.strip())