Some minor cleanup from yelp/fig

Signed-off-by: Daniel Nephin <dnephin@yelp.com>
This commit is contained in:
Daniel Nephin 2014-12-11 10:08:39 -08:00
commit 3c0f297ba6
5 changed files with 42 additions and 12 deletions

View file

@ -14,3 +14,9 @@ class DockerClientTestCase(unittest.TestCase):
with mock.patch.dict(os.environ):
del os.environ['HOME']
docker_client.docker_client()
def test_docker_client_with_custom_timeout(self):
with mock.patch.dict(os.environ):
os.environ['DOCKER_CLIENT_TIMEOUT'] = timeout = "300"
client = docker_client.docker_client()
self.assertEqual(client._timeout, int(timeout))