예제 #1
0
 def testQueryListReturnsNoneForNoMatches(self):
     repository = Repository("fakedir")
     theList = ["foo", "bar", "biz", "bat"]
     self.assertEquals(None, repository._queryList("bilbo", theList))
예제 #2
0
 def testQueryListReturnsBestMatch(self):
     repository = Repository("fakedir")
     theList = ["bil", "billbo", "BILbiz", "BILBO"]
     self.assertEquals("BILBO", repository._queryList("bilbo", theList))