'Testing whether we can retrieve the balance of a wallet'

@deferred(timeout=20)
def test_get_wallet_balance(self):

    def on_response(response):
        json_response = json.loads(response)
        self.assertIn('balance', json_response)
        self.assertGreater(json_response['balance']['available'], 0)
    self.should_check_equality = False
    return self.do_request('wallets/DUM1/balance', expected_code=200).addCallback(on_response)
