'Test whether we can create an ask using the API'

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

    def on_response(_):
        self.assertEqual(len(self.session.lm.market_community.order_book.asks), 1)
    self.should_check_equality = False
    post_data = {'price': 10, 'quantity': 10, 'price_type': 'DUM1', 'quantity_type': 'DUM2', 'timeout': 3400}
    return self.do_request('market/asks', expected_code=200, request_type='PUT', post_data=post_data).addCallback(on_response)
