from unittest import TestCase import os import sys sys.path.append(os.path.dirname(__file__) + '/../') try: from PathPlanning.AStar import A_Star_searching_from_two_side as m except ImportError: raise class Test(TestCase): def test1(self): m.show_animation = False m.main(800) def test2(self): m.show_animation = False m.main(5000) # increase obstacle number, block path if __name__ == '__main__': test = Test() test.test1() test.test2()