Example #1
0
 def testNoArgs(self):
     test_input = []
     if logger.isEnabledFor(logging.DEBUG):
         main(test_input)
     with capture_stderr(main, test_input) as output:
         self.assertTrue("Could not read file" in output)
     with capture_stdout(main, test_input) as output:
         self.assertTrue("optional arguments" in output)
Example #2
0
 def testNoArgs(self):
     test_input = []
     if logger.isEnabledFor(logging.DEBUG):
         main(test_input)
     with capture_stderr(main, test_input) as output:
         self.assertTrue("Could not read file" in output)
     with capture_stdout(main, test_input) as output:
         self.assertTrue("optional arguments" in output)
Example #3
0
 def testHelp(self):
     test_input = ['-h']
     if logger.isEnabledFor(logging.DEBUG):
         main(test_input)
     with capture_stderr(main, test_input) as output:
         self.assertFalse(output)
     with capture_stdout(main, test_input) as output:
         self.assertTrue("optional arguments" in output)
Example #4
0
 def testHelp(self):
     test_input = ['-h']
     if logger.isEnabledFor(logging.DEBUG):
         main(test_input)
     with capture_stderr(main, test_input) as output:
         self.assertFalse(output)
     with capture_stdout(main, test_input) as output:
         self.assertTrue("optional arguments" in output)
Example #5
0
 def testReorderAtomRenumMol(self):
     try:
         main(["-c", REORDER_RENUM_INI])
         self.assertFalse(diff_lines(DEF_OUT, GOOD_RENUM_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #6
0
 def testSkipSteps(self):
     try:
         main(["-c", SKIP_INI])
         self.assertFalse(diff_lines(DEF_OUT, SKIP_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #7
0
 def testFewerSteps(self):
     try:
         main(["-c", SHORTER_INI])
         self.assertFalse(diff_lines(DEF_OUT, SHORT_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #8
0
 def testReproduceDump(self):
     try:
         main(["-c", REPRODUCE_INI])
         self.assertFalse(diff_lines(DEF_OUT, DUMP_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #9
0
 def testRetypeAtom(self):
     try:
         main(["-c", RETYPE_INI])
         self.assertFalse(diff_lines(DEF_OUT, GOOD_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #10
0
 def testReorderAtoms(self):
     try:
         main(["-c", REORDER_INI])
         self.assertFalse(diff_lines(DEF_OUT, GOOD_ATOM_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #11
0
 def testSkipSteps(self):
     try:
         main(["-c", SKIP_INI])
         self.assertFalse(diff_lines(DEF_OUT, SKIP_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #12
0
 def testFewerSteps(self):
     try:
         main(["-c", SHORTER_INI])
         self.assertFalse(diff_lines(DEF_OUT, SHORT_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #13
0
 def testReproduceDump(self):
     try:
         main(["-c", REPRODUCE_INI])
         self.assertFalse(diff_lines(DEF_OUT, DUMP_FILE))
     finally:
         silent_remove(DEF_OUT)
Example #14
0
 def testRetypeAtom(self):
     try:
         main(["-c", RETYPE_INI])
         self.assertFalse(diff_lines(DEF_OUT, GOOD_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)