'Test whether the API returns the right asks in the order book when performing a request'

@deferred(timeout=10)
def test_get_asks(self):

    def on_response(response):
        json_response = json.loads(response)
        self.assertIn('asks', json_response)
        self.assertEqual(len(json_response['asks']), 1)
        self.assertIn('ticks', json_response['asks'][0])
        self.assertEqual(len(json_response['asks'][0]['ticks']), 1)
    self.session.lm.market_community.create_ask(10, 'DUM1', 10, 'DUM2', 3600)
    self.should_check_equality = False
    return self.do_request('market/asks', expected_code=200).addCallback(on_response)
