Last change
on this file since 7985 was
7795,
checked in by uli, 13 years ago
|
Merge changes from ulif-schoolgrades back into trunk.
|
File size:
786 bytes
|
Rev | Line | |
---|
[7794] | 1 | # Tests for schoolgrades module. |
---|
| 2 | import unittest |
---|
| 3 | from zope.interface.verify import verifyObject, verifyClass |
---|
| 4 | from waeup.sirp.interfaces import IResultEntry, IResultEntryField |
---|
| 5 | from waeup.sirp.schoolgrades import ResultEntry, ResultEntryField |
---|
| 6 | |
---|
| 7 | class ResultEntryTests(unittest.TestCase): |
---|
| 8 | |
---|
| 9 | def test_ifaces(self): |
---|
| 10 | # make sure we implement the promised interfaces. |
---|
| 11 | obj = ResultEntry() |
---|
| 12 | verifyObject(IResultEntry, obj) |
---|
| 13 | verifyClass(IResultEntry, ResultEntry) |
---|
| 14 | return |
---|
| 15 | |
---|
| 16 | class ResultEntryFieldTests(unittest.TestCase): |
---|
| 17 | |
---|
| 18 | def test_ifaces(self): |
---|
| 19 | # make sure we implement the promised interfaces. |
---|
| 20 | obj = ResultEntryField() |
---|
| 21 | verifyObject(IResultEntryField, obj) |
---|
| 22 | verifyClass(IResultEntryField, ResultEntryField) |
---|
| 23 | return |
---|
Note: See
TracBrowser for help on using the repository browser.