Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

clientmodule_test.py 786B

1234567891011121314151617181920212223242526272829
  1. """ docstring for file clientmodule.py """
  2. from data.suppliermodule_test import Interface, DoNothing
  3. class Ancestor(object):
  4. """ Ancestor method """
  5. __implements__ = (Interface,)
  6. cls_member = DoNothing()
  7. def __init__(self, value):
  8. local_variable = 0
  9. self.attr = 'this method shouldn\'t have a docstring'
  10. self.__value = value
  11. def get_value(self):
  12. """ nice docstring ;-) """
  13. return self.__value
  14. def set_value(self, value):
  15. self.__value = value
  16. return 'this method shouldn\'t have a docstring'
  17. class Specialization(Ancestor):
  18. TYPE = 'final class'
  19. top = 'class'
  20. def __init__(self, value, _id):
  21. Ancestor.__init__(self, value)
  22. self._id = _id
  23. self.relation = DoNothing()