forked from routablehq/python-quickbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_billpayment.py
More file actions
34 lines (21 loc) · 911 Bytes
/
test_billpayment.py
File metadata and controls
34 lines (21 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import unittest
from quickbooks.objects.billpayment import BillPayment, BillPaymentLine, CheckPayment, BillPaymentCreditCard
class CheckPaymentTests(unittest.TestCase):
def test_unicode(self):
checkpayment = CheckPayment()
checkpayment.PrintStatus = "test"
self.assertEquals(str(checkpayment), "test")
class BillPaymentLineTests(unittest.TestCase):
def test_unicode(self):
bill = BillPaymentLine()
bill.Amount = 1000
self.assertEquals(str(bill), "1000")
class BillPaymentTests(unittest.TestCase):
def test_unicode(self):
bill_payment = BillPayment()
bill_payment.TotalAmt = 1000
self.assertEquals(str(bill_payment), "1000")
class BillPaymentCreditCardTests(unittest.TestCase):
def test_init(self):
bill_payment_cc = BillPaymentCreditCard()
self.assertEquals(bill_payment_cc.CCAccountRef, None)