def setUp(self): global DBDRIVER, DBTYPE, DBHOST, DBUSER, DBPASSWD, TESTDB, DBSCHEMA global SYSTEM, SQL_FILE Entrez.email = "*****@*****.**" # create TESTDB TESTDB = create_database() # load the database db_name = "biosql-test" self.server = BioSeqDatabase.open_database(driver=DBDRIVER, user=DBUSER, passwd=DBPASSWD, host=DBHOST, db=TESTDB) # remove the database if it already exists try: self.server[db_name] self.server.remove_database(db_name) except KeyError: pass self.db = self.server.new_database(db_name) # get the GenBank file we are going to put into it self.iterator = SeqIO.parse("GenBank/cor6_6.gb", "gb")