removed obsolete issues (many of them fixed with AE)
[docutils.git] / sandbox / tibs / pysource / test / testinterpreted.py
blob00eb59311388864b737567851dcfbf99723a39f1
1 """Test interpreted text
3 This module (`testinterpreted`) contains one :class:`Fred`
4 (and one hopes `Fred` will also work) and a function *and*
5 a method called `fred`.
7 NB: the above sentence *should*, when transformed into HTML
8 or some other output format, hopefully, contain text something
9 like::
11 contains one class Fred
13 i.e., the ``:class:`Fred``` should probably cause the "insertion"
14 of the word "class". Or so I think.
15 """ #'
17 __docformat__ = "reST"
19 class Fred:
20 """This class (`Fred`), in :module:`testinterpreted`, contains
21 a method `fred`.
22 """
24 jim = None
25 """A class value, a default.
26 """
28 def fred(self):
29 """This method (`fred`) is in class `Fred`
30 """
31 fred = 3
32 """This name (`fred`) is in :function:`fred` in class `Fred`.
33 """
35 def fred(fred):
36 """This function (:function:`fred`) is *not* in class `Fred`.
38 It has one argument, :parameter:`fred`.
40 If I just say `fred`, what *should* that resolve to?
41 """
42 fred.jim = 3
43 """We assume that `fred` must be something with a `jim` attribute...
44 """