def test_complete_c(self): player = Player("fritz", "m") driver = DummyDriver() completer = TabCompleter(driver, player) result = completer.complete("c") self.assertGreater(len(result), 20) self.assertTrue("cackle" in result) self.assertTrue("criticize" in result) result = completer.complete("h") self.assertGreater(len(result), 10) self.assertTrue("hiss" in result)
def test_complete_one(self): player = Player("fritz", "m") driver = DummyDriver() completer = TabCompleter(driver, player) self.assertEqual(["criticize"], completer.complete("critic"))