Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 6
0
 def testSkipSteps(self):
     try:
         main(["-c", SKIP_INI])
         self.assertFalse(diff_lines(DEF_OUT, SKIP_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Ejemplo n.º 7
0
 def testFewerSteps(self):
     try:
         main(["-c", SHORTER_INI])
         self.assertFalse(diff_lines(DEF_OUT, SHORT_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Ejemplo n.º 8
0
 def testReproduceDump(self):
     try:
         main(["-c", REPRODUCE_INI])
         self.assertFalse(diff_lines(DEF_OUT, DUMP_FILE))
     finally:
         silent_remove(DEF_OUT)
Ejemplo n.º 9
0
 def testRetypeAtom(self):
     try:
         main(["-c", RETYPE_INI])
         self.assertFalse(diff_lines(DEF_OUT, GOOD_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Ejemplo n.º 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)
Ejemplo n.º 11
0
 def testSkipSteps(self):
     try:
         main(["-c", SKIP_INI])
         self.assertFalse(diff_lines(DEF_OUT, SKIP_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Ejemplo n.º 12
0
 def testFewerSteps(self):
     try:
         main(["-c", SHORTER_INI])
         self.assertFalse(diff_lines(DEF_OUT, SHORT_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)
Ejemplo n.º 13
0
 def testReproduceDump(self):
     try:
         main(["-c", REPRODUCE_INI])
         self.assertFalse(diff_lines(DEF_OUT, DUMP_FILE))
     finally:
         silent_remove(DEF_OUT)
Ejemplo n.º 14
0
 def testRetypeAtom(self):
     try:
         main(["-c", RETYPE_INI])
         self.assertFalse(diff_lines(DEF_OUT, GOOD_OUT_FILE))
     finally:
         silent_remove(DEF_OUT)