File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,13 @@ def test_convert_filters(self):
144
144
for filters , expected in tests :
145
145
self .assertEqual (convert_filters (filters ), expected )
146
146
147
- def test_create_empty_host_config (self ):
148
- empty_config = create_host_config (
149
- network_mode = '' , version = DEFAULT_DOCKER_API_VERSION
150
- )
151
- self .assertEqual (empty_config , {})
147
+ def test_create_host_config_no_options (self ):
148
+ config = create_host_config (version = '1.19' )
149
+ self .assertFalse ('NetworkMode' in config )
150
+
151
+ def test_create_host_config_no_options_newer_api_version (self ):
152
+ config = create_host_config (version = '1.20' )
153
+ self .assertEqual (config ['NetworkMode' ], 'default' )
152
154
153
155
def test_create_host_config_dict_ulimit (self ):
154
156
ulimit_dct = {'name' : 'nofile' , 'soft' : 8096 }
You can’t perform that action at this time.
0 commit comments