def setUp(self): testfile = os.path.abspath( os.path.join(os.path.dirname(__file__), "sample.c")) self.queue = Queue() with open(testfile) as file: testfile_lines = file.readlines() self.uut = ClangASTPrintBear({testfile: testfile_lines}, Section("name"), self.queue)
def setUp(self): self.testfile = os.path.abspath( os.path.join(os.path.dirname(__file__), "sample.c")) self.queue = Queue() self.uut = ClangASTPrintBear(Section("name"), self.queue)