示例#1
0
 def test_no_args(self):
     with self.assertRaises(ValueError):
         get_anagrams()
 def test_in_anagrams(self):
     self.assertNotIn("code", get_anagrams("treehouse"))
示例#3
0
 def test_empty_string(self):
     with self.assertRaises(ValueError):
         get_anagrams('')
示例#4
0
 def test_in_anagrams(self):
     self.assertIn("house", get_anagrams("Treehouse"))