Example #1
0
 def test_date_addition(self):
     l = LedgerTransaction()
     l.add_date(2016, 8, 11)
     self.assertEqual(2016, l.date.year)
     self.assertEqual(8, l.date.month)
     self.assertEqual(11, l.date.day)
Example #2
0
 def test_description_addition(self):
     l = LedgerTransaction()
     desc = u'some description'
     l.add_description(desc)
     self.assertEqual(desc, l.description)
Example #3
0
 def test_amount_addition(self):
     l = LedgerTransaction()
     amount = 1000
     l.add_amount(amount)
     self.assertEqual(amount, l.amount)
Example #4
0
 def test_commodity_addition(self):
     l = LedgerTransaction()
     acc = u'USD'
     l.add_commodity(acc)
     self.assertEqual(acc, l.commodity)
Example #5
0
 def test_credited_account_addition(self):
     l = LedgerTransaction()
     acc = u'dinner'
     l.add_credited_account(acc)
     self.assertEqual(acc, l.credited_account)
Example #6
0
 def test_debit_account_addition(self):
     l = LedgerTransaction()
     acc = u'checking'
     l.add_debit_account(acc)
     self.assertEqual(acc, l.debit_account)