def setUp(self): # Do actually use the fixture, because we need to test the in-memory # version (plus otherwise, we simply cannot test LibrarianCore). self.librarian = LibrarianCore.__fixture__() self.enforcer = Enforcer.__fixture__(self.librarian) self.lawyer = LawyerCore.__fixture__(self.librarian) self.percore = PersistenceCore.__fixture__() # And assemble the librarian self.librarian.assemble(self.enforcer, self.lawyer, self.percore)
def setUp(self): ''' In addition to the usual, create a tempdir for use. ''' self.ghidcache = tempfile.mkdtemp() # Do actually use the fixture, because we need to test the in-memory # version (plus otherwise, we simply cannot test LibrarianCore). self.librarian = DiskLibrarian(self.ghidcache, self.executor, self.nooploop._loop) self.enforcer = Enforcer.__fixture__(self.librarian) self.lawyer = LawyerCore.__fixture__(self.librarian) self.percore = PersistenceCore.__fixture__() # And assemble the librarian self.librarian.assemble(self.enforcer, self.lawyer, self.percore)