File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66class PaymentLineTests (unittest .TestCase ):
77 def test_unicode (self ):
8- memo_line = PaymentLine ()
9- memo_line .LineNum = 1
10- memo_line .Description = "Product Description"
11- memo_line .Amount = 100
8+ payment_line = PaymentLine ()
9+ payment_line .LineNum = 1
10+ payment_line .Description = "Product Description"
11+ payment_line .Amount = 100
1212
13- self .assertEquals (memo_line .__unicode__ (), "[1] Product Description 100" )
13+ self .assertEquals (payment_line .__unicode__ (), "[1] Product Description 100" )
1414
1515
1616class PaymentTests (unittest .TestCase ):
1717 def test_unicode (self ):
18- credit_memo = Payment ()
19- credit_memo .TotalAmt = 1000
18+ payment = Payment ()
19+ payment .TotalAmt = 1000
2020
21- self .assertEquals (credit_memo .__unicode__ (), 1000 )
21+ self .assertEquals (payment .__unicode__ (), 1000 )
Original file line number Diff line number Diff line change 1+ import unittest
2+
3+ from quickbooks .objects .paymentmethod import PaymentMethod
4+
5+
6+ class PaymentMethodTests (unittest .TestCase ):
7+ def test_unicode (self ):
8+ payment_method = PaymentMethod ()
9+ payment_method .Name = "test"
10+
11+ self .assertEquals (payment_method .__unicode__ (), "test" )
You can’t perform that action at this time.
0 commit comments