Ejemplo n.º 1
0
    def setUp(self):
        super(PermanentPurchaseTests, self).setUp()

        create_test_map()

        self.cost = 130

        self.account = self.accounts_factory.create_account()
        self.hero = heroes_logic.load_hero(account_id=self.account.id)

        self.purchase = PermanentPurchase(uid='clan-creation-rights',
                                          name=self.PURCHASE_TYPE.text,
                                          description=self.PURCHASE_TYPE.description,
                                          cost=int(self.cost / payments_settings.GLOBAL_COST_MULTIPLIER),
                                          purchase_type=self.PURCHASE_TYPE,
                                          transaction_description='clan-creation-rights')
Ejemplo n.º 2
0
    def setUp(self):
        super(PermanentPurchaseTests, self).setUp()

        create_test_map()

        self.cost = 130

        self.account = self.accounts_factory.create_account()
        self.hero = heroes_logic.load_hero(account_id=self.account.id)

        self.purchase = PermanentPurchase(
            uid='infinit-subscription',
            name=self.PURCHASE_TYPE.text,
            description=self.PURCHASE_TYPE.description,
            cost=self.cost,
            purchase_type=self.PURCHASE_TYPE,
            transaction_description='infinit-subscription')
Ejemplo n.º 3
0
    def setUp(self):
        super(PermanentPurchaseTests, self).setUp()

        create_test_map()

        self.cost = 130

        result, account_id, bundle_id = register_user('test_user',
                                                      '*****@*****.**',
                                                      '111111')

        self.account = AccountPrototype.get_by_id(account_id)
        self.hero = HeroPrototype.get_by_account_id(account_id)

        self.purchase = PermanentPurchase(
            uid=u'clan-creation-rights',
            name=self.PURCHASE_TYPE.text,
            description=self.PURCHASE_TYPE.description,
            cost=int(self.cost / payments_settings.GLOBAL_COST_MULTIPLIER),
            purchase_type=self.PURCHASE_TYPE,
            transaction_description=u'clan-creation-rights')