'Testing whether the API returns wallets when we query for them'

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

    def on_response(response):
        json_response = json.loads(response)
        self.assertIn('wallets', json_response)
        self.assertGreaterEqual(len(json_response['wallets']), 2)
    self.should_check_equality = False
    return self.do_request('wallets', expected_code=200).addCallback(on_response)
