'Test the retrieval, addition and deletion of reserved ticks in the database'

@blocking_call_on_reactor_thread
def test_add_delete_reserved_ticks(self):

    self.database.add_reserved_tick(self.order_id1, self.order_id2, self.order1.total_quantity)
    self.assertEqual(len(self.database.get_reserved_ticks(self.order_id1)), 1)
    self.database.delete_reserved_ticks(self.order_id1)
    self.assertEqual(len(self.database.get_reserved_ticks(self.order_id1)), 0)
