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)
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)
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)
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)
def testReorderAtomRenumMol(self): try: main(["-c", REORDER_RENUM_INI]) self.assertFalse(diff_lines(DEF_OUT, GOOD_RENUM_OUT_FILE)) finally: silent_remove(DEF_OUT)
def testSkipSteps(self): try: main(["-c", SKIP_INI]) self.assertFalse(diff_lines(DEF_OUT, SKIP_OUT_FILE)) finally: silent_remove(DEF_OUT)
def testFewerSteps(self): try: main(["-c", SHORTER_INI]) self.assertFalse(diff_lines(DEF_OUT, SHORT_OUT_FILE)) finally: silent_remove(DEF_OUT)
def testReproduceDump(self): try: main(["-c", REPRODUCE_INI]) self.assertFalse(diff_lines(DEF_OUT, DUMP_FILE)) finally: silent_remove(DEF_OUT)
def testRetypeAtom(self): try: main(["-c", RETYPE_INI]) self.assertFalse(diff_lines(DEF_OUT, GOOD_OUT_FILE)) finally: silent_remove(DEF_OUT)
def testReorderAtoms(self): try: main(["-c", REORDER_INI]) self.assertFalse(diff_lines(DEF_OUT, GOOD_ATOM_OUT_FILE)) finally: silent_remove(DEF_OUT)
def testSkipSteps(self): try: main(["-c", SKIP_INI]) self.assertFalse(diff_lines(DEF_OUT, SKIP_OUT_FILE)) finally: silent_remove(DEF_OUT)
def testFewerSteps(self): try: main(["-c", SHORTER_INI]) self.assertFalse(diff_lines(DEF_OUT, SHORT_OUT_FILE)) finally: silent_remove(DEF_OUT)
def testReproduceDump(self): try: main(["-c", REPRODUCE_INI]) self.assertFalse(diff_lines(DEF_OUT, DUMP_FILE)) finally: silent_remove(DEF_OUT)
def testRetypeAtom(self): try: main(["-c", RETYPE_INI]) self.assertFalse(diff_lines(DEF_OUT, GOOD_OUT_FILE)) finally: silent_remove(DEF_OUT)