def test_split_string_returns_list_with_single_item_when_splitlist_is_empty_str(self):
     text        = u"!one@two#three$"
     splitlist   = u""
     expected    = [u"!one@two#three$"]
     result = utility.split_string(text, splitlist)
     self.assertEqual(expected, result)
 def test_split_string_returns_empty_list_when_text_is_only_delims(self):
     text        = u"!@#"
     splitlist   = u"!@#"
     expected    = []
     result = utility.split_string(text, splitlist)
     self.assertEqual(expected, result)
 def test_split_string_returns_list_with_items_using_multiple_delims(self):
     text        = u"!one@two#three$"
     splitlist   = u"!@#$"
     expected    = [u"one", u"two", u"three"]
     result = utility.split_string(text, splitlist)
     self.assertEqual(expected, result)
 def test_split_string_returns_list_with_text_when_input_starts_with_delim(self):
     text        = u"!text"
     splitlist   = u"!"
     expected    = ["text"]
     result = utility.split_string(text, splitlist)
     self.assertEqual(expected, result)