(self)
| 4297 | |
| 4298 | class GetattrSuggestionTests(BaseSuggestionTests): |
| 4299 | def test_suggestions_no_args(self): |
| 4300 | class A: |
| 4301 | blech = None |
| 4302 | def __getattr__(self, attr): |
| 4303 | raise AttributeError() |
| 4304 | |
| 4305 | actual = self.get_suggestion(A(), 'bluch') |
| 4306 | self.assertIn("blech", actual) |
| 4307 | |
| 4308 | class A: |
| 4309 | blech = None |
| 4310 | def __getattr__(self, attr): |
| 4311 | raise AttributeError |
| 4312 | |
| 4313 | actual = self.get_suggestion(A(), 'bluch') |
| 4314 | self.assertIn("blech", actual) |
| 4315 | |
| 4316 | def test_suggestions_invalid_args(self): |
| 4317 | class NonStringifyClass: |
nothing calls this directly
no test coverage detected