Ejemplo n.º 1
0
 def test_archived_creditors(self):
     request = testing.DummyRequest()
     c = CreditorViews(request)
     response = c.creditors_archived()
     self.assertEqual(response['title'], 'Archived creditors')
Ejemplo n.º 2
0
 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')
Ejemplo n.º 3
0
 def test_creditor(self):
     request = testing.DummyRequest()
     c = CreditorViews(request)
     response = c.creditors()
     self.assertEqual(response['title'], 'Creditors')