diff --git a/tests/test_k8s_volume.py b/tests/test_k8s_volume.py index f93e66d..e64465d 100644 --- a/tests/test_k8s_volume.py +++ b/tests/test_k8s_volume.py @@ -188,7 +188,7 @@ def test_init_config_map(self): self.assertEqual('configMap', vol.type) self.assertIsInstance(vol.source, ConfigMapVolumeSource) - def test_hostpath_set_items(self): + def test_configmap_set_items(self): name = "yoname" type = "configMap" items = list() @@ -198,7 +198,8 @@ def test_hostpath_set_items(self): }) vol = K8sVolume(name=name, type=type) vol.configmap_items = items - self.assertEqual(items, vol.configmap_items) + serialized_items = vol.serialize().get('configMap').get('items') + self.assertEqual(items, serialized_items) # --------------------------------------------------------------------------------- awsElasticBlockStore