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)
def test_description_addition(self): l = LedgerTransaction() desc = u'some description' l.add_description(desc) self.assertEqual(desc, l.description)
def test_amount_addition(self): l = LedgerTransaction() amount = 1000 l.add_amount(amount) self.assertEqual(amount, l.amount)
def test_commodity_addition(self): l = LedgerTransaction() acc = u'USD' l.add_commodity(acc) self.assertEqual(acc, l.commodity)
def test_credited_account_addition(self): l = LedgerTransaction() acc = u'dinner' l.add_credited_account(acc) self.assertEqual(acc, l.credited_account)
def test_debit_account_addition(self): l = LedgerTransaction() acc = u'checking' l.add_debit_account(acc) self.assertEqual(acc, l.debit_account)