'Test the deletion of a transaction from the database'

@blocking_call_on_reactor_thread
def test_delete_transaction(self):

    self.database.add_transaction(self.transaction1)
    self.assertEqual(len(self.database.get_all_transactions()), 1)
    self.database.delete_transaction(self.transaction_id1)
    self.assertEqual(len(self.database.get_all_transactions()), 0)
