Test reopen command.
(self)
| 369 | """Tests for reopen command.""" |
| 370 | |
| 371 | def test_reopen(self): |
| 372 | """Test reopen command.""" |
| 373 | arbiter = MockArbiter() |
| 374 | handlers = CommandHandlers(arbiter) |
| 375 | |
| 376 | with patch('os.kill') as mock_kill: |
| 377 | result = handlers.reopen() |
| 378 | |
| 379 | assert result["status"] == "reopening" |
| 380 | mock_kill.assert_called_once_with(12345, signal.SIGUSR1) |
| 381 | |
| 382 | |
| 383 | class TestShutdown: |
nothing calls this directly
no test coverage detected