Show More
@@ -100,14 +100,14 b' def test_info():' | |||||
100 | nt.assert_equal(i['file'], fname) |
|
100 | nt.assert_equal(i['file'], fname) | |
101 | nt.assert_equal(i['definition'], 'Call(self, *a, **kw)\n') |
|
101 | nt.assert_equal(i['definition'], 'Call(self, *a, **kw)\n') | |
102 | nt.assert_equal(i['docstring'], Call.__doc__) |
|
102 | nt.assert_equal(i['docstring'], Call.__doc__) | |
103 |
nt.assert_ |
|
103 | nt.assert_equal(i['source'], None) | |
104 | nt.assert_true(i['isclass']) |
|
104 | nt.assert_true(i['isclass']) | |
105 | nt.assert_equal(i['init_definition'], "Call(self, x, y=1)\n") |
|
105 | nt.assert_equal(i['init_definition'], "Call(self, x, y=1)\n") | |
106 | nt.assert_equal(i['init_docstring'], Call.__init__.__doc__) |
|
106 | nt.assert_equal(i['init_docstring'], Call.__init__.__doc__) | |
107 |
|
107 | |||
108 | i = inspector.info(Call, detail_level=1) |
|
108 | i = inspector.info(Call, detail_level=1) | |
109 |
nt.assert_ |
|
109 | nt.assert_not_equal(i['source'], None) | |
110 |
nt.assert_ |
|
110 | nt.assert_equal(i['docstring'], None) | |
111 |
|
111 | |||
112 | c = Call(1) |
|
112 | c = Call(1) | |
113 | c.__doc__ = "Modified instance docstring" |
|
113 | c.__doc__ = "Modified instance docstring" |
General Comments 0
You need to be logged in to leave comments.
Login now