def setUp(self): super(PostponedUpdateAccountTaskTests, self).setUp() create_test_map() self.account = self.accounts_factory.create_account() self.postponed_task = UpdateAccount(account_id=self.account.id, method=AccountPrototype.prolong_premium, data={'days': 17})
def setUp(self): super(PostponedUpdateAccountTaskTests, self).setUp() create_test_map() result, account_id, bundle_id = register_user('test_user', '*****@*****.**', '111111') self.account = AccountPrototype.get_by_id(account_id) self.postponed_task = UpdateAccount( account_id=self.account.id, method=AccountPrototype.prolong_premium, data={'days': 17})