def test_archived_creditors(self): request = testing.DummyRequest() c = CreditorViews(request) response = c.creditors_archived() self.assertEqual(response['title'], 'Archived creditors')
def test_creditor_new(self): request = testing.DummyRequest() request.POST = multidict.MultiDict() c = CreditorViews(request) response = c.creditor_create() self.assertEqual(response['title'], 'New creditor')
def test_creditor(self): request = testing.DummyRequest() c = CreditorViews(request) response = c.creditors() self.assertEqual(response['title'], 'Creditors')