コード例 #1
0
    def setUp(self):
        super(ResurrectActionTest, self).setUp()

        create_test_map()

        self.account = self.accounts_factory.create_account(is_fast=True)

        self.storage = LogicStorage()
        self.storage.load_account_data(self.account)
        self.hero = self.storage.accounts_to_heroes[self.account.id]
        self.action_idl = self.hero.actions.current_action

        self.hero.kill()

        self.action_resurrect = ActionResurrectPrototype.create(hero=self.hero)
コード例 #2
0
    def setUp(self):
        super(ResurrectActionTest, self).setUp()

        create_test_map()

        self.account = self.accounts_factory.create_account(is_fast=True)

        self.storage = LogicStorage()
        self.storage.load_account_data(self.account)
        self.hero = self.storage.accounts_to_heroes[self.account.id]
        self.action_idl = self.hero.actions.current_action

        self.hero.kill()

        self.action_resurrect = ActionResurrectPrototype.create(hero=self.hero)
コード例 #3
0
    def setUp(self):
        super(ResurrectActionTest, self).setUp()

        create_test_map()

        result, account_id, bundle_id = register_user('test_user')

        self.account = AccountPrototype.get_by_id(account_id)

        self.storage = LogicStorage()
        self.storage.load_account_data(self.account)
        self.hero = self.storage.accounts_to_heroes[account_id]
        self.action_idl = self.hero.actions.current_action

        self.hero.kill()

        self.action_resurrect = ActionResurrectPrototype.create(hero=self.hero)
コード例 #4
0
    def setUp(self):
        super(ResurrectActionTest, self).setUp()

        create_test_map()

        result, account_id, bundle_id = register_user('test_user')

        self.account = AccountPrototype.get_by_id(account_id)

        self.storage = LogicStorage()
        self.storage.load_account_data(self.account)
        self.hero = self.storage.accounts_to_heroes[account_id]
        self.action_idl = self.hero.actions.current_action

        self.hero.kill()

        self.action_resurrect = ActionResurrectPrototype.create(hero=self.hero)