Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit 565886e

Browse files
committed
add unit test for _to_dict
1 parent 320d09c commit 565886e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_unit_cwlgen.py

+6
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ def test_init(self):
208208
self.assertEqual(self.dock_req.dockerImageId, 'id')
209209
self.assertEqual(self.dock_req.dockerOutputDir, 'dir')
210210

211+
def test_export(self):
212+
d = self.dock_req._to_dict()
213+
assert d == dict(dockerPull='pull', dockerLoad='load',\
214+
dockerFile='file', dockerImport='import',\
215+
dockerImageId='id', dockerOutputDir='dir')
216+
211217

212218
########### Main ###########
213219

0 commit comments

Comments
 (0)