Esempio n. 1
0
 def test_income_archived(self):
     request = testing.DummyRequest()
     i = IncomeViews(request)
     response = i.incomes_archived()
     self.assertEqual(response['title'], 'Archived incomes')
Esempio n. 2
0
 def test_income_new(self):
     request = testing.DummyRequest()
     request.POST = multidict.MultiDict()
     i = IncomeViews(request)
     response = i.income_create()
     self.assertEqual(response['title'], 'New income')
Esempio n. 3
0
 def test_income(self):
     request = testing.DummyRequest()
     i = IncomeViews(request)
     response = i.incomes()
     self.assertEqual(response['title'], 'Monthly incomes')