'Test the insertion and retrieval of a payment in the database'

@blocking_call_on_reactor_thread
def test_add_get_payment(self):

    self.database.add_payment(self.payment1)
    payments = self.database.get_payments(self.transaction_id1)
    self.assertEqual(len(payments), 1)
