def test_check_disabled(self): # pylint: disable=R0201 """Verify the client can check a disabled server.""" with patch('doorstop.server.client.exists', Mock(return_value=False)): client.check()
def test_check(self): """Verify the client can check a server.""" with patch('doorstop.server.client.exists', Mock(return_value=True)): client.check()