示例#1
0
 def testCheckClose_closeDown(self):
     """ Recognize a character within 5 characters down of the target """
     assert WordValidator.close("f", "a"), "Should be close"
示例#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"
示例#3
0
 def testCheckClose_closeUp(self):
     """ Recognize a character within 5 characters up of the target """
     assert WordValidator.close("a", "f"), "Should be close"