예제 #1
0
    def test_PayeeView(self):
        view = views.PayeeView(self.entries, self.options_map, 'Payee', 'Hardware Store')
        self.assertNotEqual([], view.entries)
        self.assertEqual([], view.opening_entries)
        self.assertNotEqual([], view.closing_entries)

        self.assertNotEqual(self.empty_realization, view.real_accounts)
        self.assertEqual(self.empty_realization, view.opening_real_accounts)
        self.assertNotEqual(self.empty_realization, view.closing_real_accounts)
예제 #2
0
파일: web.py 프로젝트: pmarciniak/beancount
def payee(payee=None, path=None):
    return views.PayeeView(app.entries, app.options, 'Payee {}'.format(payee),
                           payee)