Georg Brandl | 8632cc2 | 2008-05-18 16:32:48 +0000 | [diff] [blame] | 1 | """This is a test module for test_pydoc""" |
| 2 | |
| 3 | __author__ = "Benjamin Peterson" |
| 4 | __credits__ = "Nobody" |
| 5 | __version__ = "1.2.3.4" |
| 6 | |
| 7 | |
| 8 | class A: |
| 9 | """Hello and goodbye""" |
| 10 | def __init__(): |
| 11 | """Wow, I have no function!""" |
| 12 | pass |
| 13 | |
| 14 | class B(object): |
| 15 | NO_MEANING = "eggs" |
| 16 | pass |
| 17 | |
Benjamin Peterson | c3e1e90 | 2014-06-07 16:44:00 -0700 | [diff] [blame] | 18 | class C(object): |
| 19 | def say_no(self): |
| 20 | return "no" |
| 21 | def get_answer(self): |
| 22 | """ Return say_no() """ |
| 23 | return self.say_no() |
| 24 | def is_it_true(self): |
| 25 | """ Return self.get_answer() """ |
| 26 | return self.get_answer() |
| 27 | |
Georg Brandl | 8632cc2 | 2008-05-18 16:32:48 +0000 | [diff] [blame] | 28 | def doc_func(): |
| 29 | """ |
| 30 | This function solves all of the world's problems: |
| 31 | hunger |
| 32 | lack of Python |
| 33 | war |
| 34 | """ |
| 35 | |
| 36 | def nodoc_func(): |
| 37 | pass |