Ignore:
Timestamp:
31 Aug 2012, 15:14:21 (12 years ago)
Author:
Henrik Bettermann
Message:

Use getattr function instead of get method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_vocabularies.py

    r9134 r9135  
    2828        cert.end_level = 500
    2929        self.certificate = cert
    30 
    31     def get(self, attr, default=None):
    32         try:
    33             return self.__getattribute__(attr)
    34         except AttributeError:
    35             return default
    3630
    3731class VocabularyTests(unittest.TestCase):
Note: See TracChangeset for help on using the changeset viewer.