def test_anagram(self): self.assertTrue(is_anagram("abc", "acb")) self.assertTrue(is_anagram("silent", "listen")) self.assertFalse(is_anagram("one", "two"))
def test_multiword_anagram(self): self.assertTrue(is_anagram("ana gram", "naga ram")) self.assertTrue(is_anagram("anagram", "nag a ram"))
def test_anagram(): assert is_anagram("elvis", "lives") assert is_anagram("silent", "listen") assert not is_anagram("one", "two")
def test_anagram(): assert is_anagram("abc", "acb") assert is_anagram("silent", "listen") assert not is_anagram("one", "two")
def test_multiword_anagram(): assert is_anagram("ana gram", "naga ram") assert is_anagram("anagram", "nag a ram")
from mymod_1 import is_anagram import sys if len(sys.argv) != 3: exit("Usage {} STR STR".format(sys.argv[0])) print(is_anagram(sys.argv[1], sys.argv[2]))