Пример #1
0
    def setUp(self):
        '''
        Setup the test
        '''
        self.connector = Connector()
        self.connector.services = {1: ServiceProxyStubBTC()}
        self.connector.config = {
            1: {
                'id': int(1),
                'rpcusername': "******",
                'rpcpassword': "******",
                'rpchost': "localhost",
                'rpcport': "7000",
                'name': 'Bitcoin (BTC)',
                'currency': 'btc',
                'symbol': "B",
                'enabled': True,
            },
        }

        user = User.objects.create_user('testing', '*****@*****.**',
                                        'testingpassword')
        user.save()