(self)
| 139 | client.close() |
| 140 | |
| 141 | def test_debuglevel(self): |
| 142 | mock_socket.reply_with(b"220 Hello world") |
| 143 | client = self.client() |
| 144 | client.set_debuglevel(1) |
| 145 | with support.captured_stderr() as stderr: |
| 146 | client.connect(HOST, self.port) |
| 147 | client.close() |
| 148 | expected = re.compile(r"^connect:", re.MULTILINE) |
| 149 | self.assertRegex(stderr.getvalue(), expected) |
| 150 | |
| 151 | def test_debuglevel_2(self): |
| 152 | mock_socket.reply_with(b"220 Hello world") |
nothing calls this directly
no test coverage detected