Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/t/h/thbattle-HEAD/tools/replay_server.py   thbattle(Download)
autoenv.init('Server')
 
from server.core import Player
from network import EndpointDied
from network.common import GamedataMixin
 
clients = [MockClient(i) for i in xrange(mode.n_persons)]
players = BatchList([Player(i) for i in clients])
 
g = mode()

src/t/h/thbattle-HEAD/tests/mock.py   thbattle(Download)
def create_mock_player(gdlist):
    conn = MockConnection(gdlist[:])
    from server.core import Player
    return Player(conn)