'Test the retrieval of the next transaction number from the database'

@blocking_call_on_reactor_thread
def test_get_next_transaction_number(self):

    self.assertEqual(self.database.get_next_transaction_number(), 1)
    self.database.add_transaction(self.transaction1)
    self.assertEqual(self.database.get_next_transaction_number(), 5)
