def setUp(self): try: __location__ = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__))) self.src = open( os.path.join(__location__, "data/bit-test-data.txt")) self.badFreq = open( os.path.join(__location__, "data/bad-frequency.txt")) self.badStartTime = open( os.path.join(__location__, "data/bad-starttime.txt")) self.graph = Graph("http://localhost:8484/db/data") self.graph.delete_all() self.service = WaferService(self.graph) except: print "Error during unittest setup"
def __init__(self, graph): self.graph = WaferService(graph)