def test_alphabetical_by_2nd_letter(self): output = anagram_solver.solve_one("takes") self.assertEqual(output, ["keast", "skate", "stake", "steak"])
def test_string_in_dict(self): output = anagram_solver.solve_one("rates") self.assertEqual( output, ["tares", "tarse", "sater", "tears", "teras", "serta", "tresa", "artes", "aster", "stare", "strae"] )
def test_no_valid_anagrams(self): output = anagram_solver.solve_one("foul") self.assertEqual(output, [])
def test_string_not_in_dict(self): output = anagram_solver.solve_one("fat") self.assertEqual(output, [])