Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
2efb4f5be0
commit
7544580b4b
6 changed files with 42 additions and 3 deletions
16
tests/unit/cli/docker_client_test.py
Normal file
16
tests/unit/cli/docker_client_test.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from __future__ import unicode_literals
|
||||
from __future__ import absolute_import
|
||||
import os
|
||||
|
||||
import mock
|
||||
from tests import unittest
|
||||
|
||||
from fig.cli import docker_client
|
||||
|
||||
|
||||
class DockerClientTestCase(unittest.TestCase):
|
||||
|
||||
def test_docker_client_no_home(self):
|
||||
with mock.patch.dict(os.environ):
|
||||
del os.environ['HOME']
|
||||
docker_client.docker_client()
|
||||
Loading…
Add table
Add a link
Reference in a new issue