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