def testDefFile(self):
    l = Parser.parseSource(testHeader)
    
    # FIXME: hardcode the function pointer since we don't parse those yet
    l.functions["funcPointer"] = Library.Function("funcPointer", "void")

    for function, ordinal in Parser.parseDefFile(testDefFile):
      l.functions[function].ordinal = ordinal
    
    # check that all ordinals were read    
    for f in l.functions.values():
      assert f.ordinal is not None

    # check overlapping ordinals in input
    try:
      Parser.parseDefFile(testBadDefFile)
      self.fail("ValueError not raised.")
    except __HOLE__:
      pass
dataset/ETHPy150Open skyostil/tracy/src/generator/ParserTest.py/ParserTest.testDefFile