test_import.py
Go to the documentation of this file.
1 from test_msg import debug, info, error, warning
2 
3 def test_import():
4 
5  try:
6  debug('Attempting to import geoalgo')
7  import ROOT
8  ROOT.gSystem.Load("liblarcorealg_GeoAlgo.so")
9  from ROOT import geoalgo
10  except Exception:
11  error('Import geoalgo unit test failed.')
12  return 1
13  info('geoalgo import succeeded.')
14  return 0
15 
16 if __name__ == '__main__':
17  test_import()
18 
error
Definition: include.cc:26
def test_import()
Definition: test_import.py:3