'Test to check the Invoice Transactions amount.'

def test_get_total_amount_of_paid_invoices(self):

    InvoiceTransaction.objects.create(invoice=self.invoice, amount='123.45', currency='usd', comments='test    comments', status='completed', created_by=self.user, last_modified_by=self.user)
    total_amount_paid = InvoiceTransaction.get_total_amount_of_paid_course_invoices(self.course_key)
    self.assertEqual(float(total_amount_paid), 123.45)
