def test_not_available(self): with MonkeyPatchScope([(docker, '_DOCKER', NonePath())]): self.assertFalse(docker.available())
def test_available(self): self.assertTrue(docker.available())