示例#1
0
文件: view.py 项目: plastboks/Pyrtos
 def test_archived_creditors(self):
     request = testing.DummyRequest()
     c = CreditorViews(request)
     response = c.creditors_archived()
     self.assertEqual(response['title'], 'Archived creditors')
示例#2
0
文件: view.py 项目: plastboks/Pyrtos
 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')
示例#3
0
文件: view.py 项目: plastboks/Pyrtos
 def test_creditor(self):
     request = testing.DummyRequest()
     c = CreditorViews(request)
     response = c.creditors()
     self.assertEqual(response['title'], 'Creditors')