Example #1
0
def test_main():
	from EMAN2 import Log
	p = OptionParser()
	p.add_option('--t', action='store_true', help='test exception', default=False )
	global IS_TEST_EXCEPTION
	opt, args = p.parse_args()
	if opt.t:
		IS_TEST_EXCEPTION = True
	Log.logger().set_level(-1)  #perfect solution for quenching the Log error information, thank Liwei
	suite = unittest.TestLoader().loadTestsFromTestCase(TestCorrelationFunctions)
	unittest.TextTestRunner(verbosity=2).run(suite)
Example #2
0
def test_main():
    from EMAN2 import Log
    p = OptionParser()
    p.add_option('--t', action='store_true', help='test exception', default=False )
    global IS_TEST_EXCEPTION
    opt, args = p.parse_args()
    if opt.t:
        IS_TEST_EXCEPTION = True
    Log.logger().set_level(-1)  #perfect solution for quenching the Log error information, thank Liwei
    suite = unittest.TestLoader().loadTestsFromTestCase(TestMultiAlignStability)
    unittest.TextTestRunner(verbosity=2).run(suite)
Example #3
0
def test_main():
    from EMAN2 import Log

    p = OptionParser()
    p.add_option("--t", action="store_true", help="test exception", default=False)
    global IS_TEST_EXCEPTION
    opt, args = p.parse_args()
    if opt.t:
        IS_TEST_EXCEPTION = True
    Log.logger().set_level(
        -1
    )  # perfect solution for quenching the Log error information, thank Liwei
    suite = unittest.TestLoader().loadTestsFromTestCase(
        Test_Util_diff_between_matrix_of_3D_parameters_angles
    )
    unittest.TextTestRunner(verbosity=2).run(suite)