@@ -182,7 +182,8 @@ def runTest(self):
182
182
'busybox' ,
183
183
['ls' , mount_dest ], volumes = {mount_dest : {}},
184
184
host_config = create_host_config (
185
- binds = binds , network_mode = 'none' )
185
+ binds = binds , network_mode = 'none'
186
+ )
186
187
)
187
188
container_id = container ['Id' ]
188
189
self .client .start (container_id )
@@ -223,7 +224,8 @@ def runTest(self):
223
224
'busybox' ,
224
225
['ls' , mount_dest ], volumes = {mount_dest : {}},
225
226
host_config = create_host_config (
226
- binds = binds , network_mode = 'none' )
227
+ binds = binds , network_mode = 'none'
228
+ )
227
229
)
228
230
container_id = container ['Id' ]
229
231
self .client .start (container_id )
@@ -276,7 +278,8 @@ def runTest(self):
276
278
ctnr = self .client .create_container (
277
279
'busybox' , ['mkdir' , '/shrine' ],
278
280
host_config = create_host_config (
279
- read_only = True , network_mode = 'none' )
281
+ read_only = True , network_mode = 'none'
282
+ )
280
283
)
281
284
self .assertIn ('Id' , ctnr )
282
285
self .tmp_containers .append (ctnr ['Id' ])
@@ -351,7 +354,8 @@ class TestCreateContainerPrivileged(BaseTestCase):
351
354
def runTest (self ):
352
355
res = self .client .create_container (
353
356
'busybox' , 'true' , host_config = create_host_config (
354
- privileged = True , network_mode = 'none' )
357
+ privileged = True , network_mode = 'none'
358
+ )
355
359
)
356
360
self .assertIn ('Id' , res )
357
361
self .tmp_containers .append (res ['Id' ])
@@ -596,7 +600,8 @@ def runTest(self):
596
600
container = self .client .create_container (
597
601
'busybox' , ['sleep' , '60' ], ports = list (port_bindings .keys ()),
598
602
host_config = create_host_config (
599
- port_bindings = port_bindings , network_mode = 'bridge' )
603
+ port_bindings = port_bindings , network_mode = 'bridge'
604
+ )
600
605
)
601
606
id = container ['Id' ]
602
607
@@ -723,7 +728,8 @@ def runTest(self):
723
728
res2 = self .client .create_container (
724
729
'busybox' , 'cat' , detach = True , stdin_open = True ,
725
730
host_config = create_host_config (
726
- volumes_from = vol_names , network_mode = 'none' )
731
+ volumes_from = vol_names , network_mode = 'none'
732
+ )
727
733
)
728
734
container3_id = res2 ['Id' ]
729
735
self .tmp_containers .append (container3_id )
0 commit comments