Changeset 9133 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 31 Aug 2012, 14:54:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_vocabularies.py
r7811 r9133 21 21 22 22 23 class FakeStudyCourse( object):23 class FakeStudyCourse(dict): 24 24 25 def __init__( self):25 def __init__(object): 26 26 cert = Certificate(code="CERT1") 27 27 cert.start_level = 100 28 28 cert.end_level = 500 29 29 self.certificate = cert 30 31 def get(self, attr, default=None): 32 try: 33 return self.__getattribute__(attr) 34 except AttributeError: 35 return default 30 36 31 37 class VocabularyTests(unittest.TestCase):
Note: See TracChangeset for help on using the changeset viewer.