Beispiel #1
0
 def test_complete_one(self):
     player = Player("fritz", "m")
     driver = TestDriver()
     conn = PlayerConnection(player)
     io = IoAdapterBase(conn)
     conn.io = io
     self.assertEqual(["criticize"], io.tab_complete("critic", driver))
Beispiel #2
0
 def test_complete_one(self):
     player = Player("fritz", "m")
     driver = TestDriver()
     conn = PlayerConnection(player)
     io = IoAdapterBase(conn)
     conn.io = io
     self.assertEqual(["criticize"], io.tab_complete("critic", driver))
Beispiel #3
0
 def test_complete_c(self):
     player = Player("fritz", "m")
     driver = TestDriver()
     conn = PlayerConnection(player)
     io = IoAdapterBase(conn)
     conn.io = io
     result = io.tab_complete("c", driver)
     self.assertGreater(len(result), 20)
     self.assertTrue("cackle" in result)
     self.assertTrue("criticize" in result)
     result = io.tab_complete("h", driver)
     self.assertGreater(len(result), 10)
     self.assertTrue("hiss" in result)
Beispiel #4
0
 def test_complete_c(self):
     player = Player("fritz", "m")
     driver = TestDriver()
     conn = PlayerConnection(player)
     io = IoAdapterBase(conn)
     conn.io = io
     result = io.tab_complete("c", driver)
     self.assertGreater(len(result), 20)
     self.assertTrue("cackle" in result)
     self.assertTrue("criticize" in result)
     result = io.tab_complete("h", driver)
     self.assertGreater(len(result), 10)
     self.assertTrue("hiss" in result)