mirror of https://github.com/docker/docker-py.git
Fixed start_container tests
This commit is contained in:
parent
e992a8127d
commit
c29a6a2841
|
|
@ -585,17 +585,12 @@ class DockerClientTest(Cleanup, unittest.TestCase):
|
|||
args[0][0],
|
||||
url_prefix + 'containers/3cc2351ab11b/start'
|
||||
)
|
||||
self.assertEqual(json.loads(args[1]['data']), {})
|
||||
self.assertEqual(
|
||||
json.loads(args[1]['data']),
|
||||
{"PublishAllPorts": False, "Privileged": False}
|
||||
args[1]['headers'], {'Content-Type': 'application/json'}
|
||||
)
|
||||
self.assertEqual(
|
||||
args[1]['headers'],
|
||||
{'Content-Type': 'application/json'}
|
||||
)
|
||||
self.assertEqual(
|
||||
args[1]['timeout'],
|
||||
docker.client.DEFAULT_TIMEOUT_SECONDS
|
||||
args[1]['timeout'], docker.client.DEFAULT_TIMEOUT_SECONDS
|
||||
)
|
||||
|
||||
def test_create_container_with_lxc_conf(self):
|
||||
|
|
@ -876,17 +871,12 @@ class DockerClientTest(Cleanup, unittest.TestCase):
|
|||
args[0][0],
|
||||
url_prefix + 'containers/3cc2351ab11b/start'
|
||||
)
|
||||
self.assertEqual(json.loads(args[1]['data']), {})
|
||||
self.assertEqual(
|
||||
json.loads(args[1]['data']),
|
||||
{"PublishAllPorts": False, "Privileged": False}
|
||||
args[1]['headers'], {'Content-Type': 'application/json'}
|
||||
)
|
||||
self.assertEqual(
|
||||
args[1]['headers'],
|
||||
{'Content-Type': 'application/json'}
|
||||
)
|
||||
self.assertEqual(
|
||||
args[1]['timeout'],
|
||||
docker.client.DEFAULT_TIMEOUT_SECONDS
|
||||
args[1]['timeout'], docker.client.DEFAULT_TIMEOUT_SECONDS
|
||||
)
|
||||
|
||||
def test_create_container_with_restart_policy(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue