Last change
on this file since 12109 was
12109,
checked in by Henrik Bettermann, 10 years ago
|
svn propset svn:keywords "Id"
|
-
Property svn:keywords set to
Id
|
File size:
957 bytes
|
Rev | Line | |
---|
[8852] | 1 | # Make sure that test setup basically works. |
---|
| 2 | # THIS FILE CAN BE REMOVED. |
---|
| 3 | |
---|
| 4 | from kofacustom.nigeria.testing import FunctionalTestCase, FunctionalLayer |
---|
| 5 | |
---|
| 6 | class FooTest(FunctionalTestCase): |
---|
| 7 | |
---|
| 8 | layer = FunctionalLayer |
---|
| 9 | |
---|
| 10 | def test_foo(self): |
---|
| 11 | # we can access registered components |
---|
| 12 | from zope.component import getUtility |
---|
| 13 | from waeup.kofa.applicants.interfaces import IApplicantsUtils |
---|
| 14 | from kofacustom.nigeria.applicants.utils import NigeriaApplicantsUtils |
---|
| 15 | result = getUtility(IApplicantsUtils) |
---|
| 16 | self.assertTrue(isinstance(result, NigeriaApplicantsUtils)) |
---|
| 17 | return |
---|
| 18 | |
---|
| 19 | def test_bar(self): |
---|
| 20 | # we can access browser contents |
---|
| 21 | from waeup.kofa.app import University |
---|
| 22 | self.getRootFolder()['app'] = University() |
---|
| 23 | from zope.testbrowser.testing import Browser |
---|
| 24 | br = Browser() |
---|
| 25 | br.open('http://localhost/app/') |
---|
| 26 | self.assertTrue('WAeUP.Kofa' in br.contents) |
---|
| 27 | return |
---|
Note: See
TracBrowser for help on using the repository browser.