We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a231956 commit 2b1bbc4Copy full SHA for 2b1bbc4
1 file changed
test/test_script_odml_convert.py
@@ -0,0 +1,28 @@
1
+import os
2
+import shutil
3
+import unittest
4
+
5
+from docopt import DocoptExit
6
7
+from odml.scripts import odml_convert
8
+from . import util
9
10
11
+class TestScriptOdmlConvert(unittest.TestCase):
12
13
+ def setUp(self):
14
+ self.tmp_dir = util.create_test_dir(__file__)
15
16
+ def tearDown(self):
17
+ if self.tmp_dir and os.path.exists(self.tmp_dir):
18
+ shutil.rmtree(self.tmp_dir)
19
20
+ def test_script_exit(self):
21
+ with self.assertRaises(DocoptExit):
22
+ odml_convert.main([])
23
24
25
+ odml_convert.main(["-o", self.tmp_dir])
26
27
+ with self.assertRaises(SystemExit):
28
+ odml_convert.main(["-h"])
0 commit comments