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)
def payee(payee=None, path=None): return views.PayeeView(app.entries, app.options, 'Payee {}'.format(payee), payee)