def test_daemon_invalid_action(self, exit_mock): daemon('kurakurakura') self.assertTrue(exit_mock.called)
def test_daemon_start(self, daemon_mock): d = daemon('start') self.assertTrue(daemon_mock.called) self.assertTrue(isinstance(d, Deiman))
def test_daemon_status(self, exit_mock, daemon_mock): daemon('status') self.assertTrue(daemon_mock.called) self.assertTrue(exit_mock.called)