コード例 #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')