Test showing config.
(self)
| 155 | """Tests for show config command.""" |
| 156 | |
| 157 | def test_show_config(self): |
| 158 | """Test showing config.""" |
| 159 | arbiter = MockArbiter() |
| 160 | handlers = CommandHandlers(arbiter) |
| 161 | |
| 162 | result = handlers.show_config() |
| 163 | |
| 164 | assert result["workers"] == 4 |
| 165 | assert result["timeout"] == 30 |
| 166 | assert result["bind"] == ['127.0.0.1:8000'] |
| 167 | |
| 168 | |
| 169 | class TestShowListeners: |
nothing calls this directly
no test coverage detected