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

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

    def on_response(response):
        json_response = json.loads(response)
        self.assertIn('transactions', json_response)
        self.assertEqual(len(json_response['transactions']), 1)
    self.add_transaction_and_payment()
    self.should_check_equality = False
    return self.do_request('market/transactions', expected_code=200).addCallback(on_response)
