def test_CONVERT_OUT(self): """ test Syntax.CONVERT_OUT """ self.assertEqual("broc_out/baidu/broc/hello.h", Syntax.CONVERT_OUT("./hello.h")) #test CONVERT_OUT can raise Syntax.NotInSelfModuleError or not flag = False try: Syntax.CONVERT_OUT("../hello.h") except Syntax.NotInSelfModuleError as er: flag = True self.assertTrue(flag)