source: main/waeup.sirp/trunk/src/waeup/sirp/tests/test_schoolgrades.py @ 10009

Last change on this file since 10009 was 7795, checked in by uli, 13 years ago

Merge changes from ulif-schoolgrades back into trunk.

File size: 786 bytes
Line 
1# Tests for schoolgrades module.
2import unittest
3from zope.interface.verify import verifyObject, verifyClass
4from waeup.sirp.interfaces import IResultEntry, IResultEntryField
5from waeup.sirp.schoolgrades import ResultEntry, ResultEntryField
6
7class 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
16class 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.