コード例 #1
0
ファイル: test_scrabble.py プロジェクト: jml/scrabble
 def assertIsNotAnagram(self, word1, word2):
     self.assertFalse(
         is_anagram(word1, word2),
         "%r is an anagram of %r" % (word1, word2))
     self.assertFalse(
         is_anagram(word2, word1),
         "%r is an anagram of %r" % (word1, word2))
コード例 #2
0
ファイル: test_scrabble.py プロジェクト: jml/scrabble
 def assertIsAnagram(self, word1, word2):
     self.assertTrue(
         is_anagram(word1, word2),
         "%r is not an anagram of %r" % (word1, word2))
     self.assertTrue(
         is_anagram(word2, word1),
         "%r is not an anagram of %r" % (word1, word2))