def test_strip_leading_whitespace_returns_same_string_when_input_is_empty_string(self): s = u"" expected = u"" result = utility.strip_leading_whitespace(s) self.assertEqual(expected, result)
def test_strip_leading_whitespace_deletes_multiple_nbsp_from_start_of_string(self): s = u" text" expected = u"text" result = utility.strip_leading_whitespace(s) self.assertEqual(expected, result)
def test_strip_leading_whitespace_does_not_delete_non_leading_nbsp(self): s = u"text text" expected = u"text text" result = utility.strip_leading_whitespace(s) self.assertEqual(expected, result)
def test_strip_leading_whitespace_deletes_tab_from_start_of_string(self): s = u"\ttext" expected = u"text" result = utility.strip_leading_whitespace(s) self.assertEqual(expected, result)