Esempio n. 1
0
 def testCheckClose_closeDown(self):
     """ Recognize a character within 5 characters down of the target """
     assert WordValidator.close("f", "a"), "Should be close"
Esempio n. 2
0
 def testCheckClose_notClose(self):
     """ Recognize a character within 5 characters down of the target """
     assert not WordValidator.close("a", "z"), "Should not be close"
Esempio n. 3
0
 def testCheckClose_closeUp(self):
     """ Recognize a character within 5 characters up of the target """
     assert WordValidator.close("a", "f"), "Should be close"