diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run_cmd.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/run_cmd.py b/tests/run_cmd.py index 0d5e1ff..2eb2db3 100644 --- a/tests/run_cmd.py +++ b/tests/run_cmd.py @@ -40,6 +40,24 @@ class Main(unittest.TestCase): # just the existence of the files is enough for now... map(lambda f: self.assertTrue(exists(f)), files.itervalues()) + def testCcs2PcsNeedleBetter(self): + testfile = join(dirname(__file__), 'filled.conf') + + files = { + "cib": {'passin': 'bytestring', }, + "coro": {'passin': 'bytestring', }, + } + clufter_args = type("cluster_args", (object, ), dict( + input=testfile, + nocheck=True, + batch=True, + **files) + ) + cmd_manager = CommandManager.implicit() + self.assertFalse(cmd_manager.commands["ccs2pcs-needle"](clufter_args)) + # just the existence of non-null strings is enough for now... + map(lambda fspec: self.assertTrue(fspec['passout']), files.values()) + if __name__ == '__main__': unittest.main() |