def test_income_archived(self): request = testing.DummyRequest() i = IncomeViews(request) response = i.incomes_archived() self.assertEqual(response['title'], 'Archived incomes')
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')
def test_income(self): request = testing.DummyRequest() i = IncomeViews(request) response = i.incomes() self.assertEqual(response['title'], 'Monthly incomes')