def setUp(self):
     """this method is called before each test"""
     B3TestCase.setUp(self)
     try:
         db = MySQLdb.connect(host='localhost', user='******', passwd='test')
     except MySQLdb.OperationalError, message:
         self.fail("Error %d:\n%s" % (message[0], message[1]))
 def tearDown(self):
     """this method is called after each test"""
     B3TestCase.tearDown(self)
     self.storage.shutdown()
 def setUp(self):
     """this method is called before each test"""
     B3TestCase.setUp(self)
     self.storage = b3.console.storage = DatabaseStorage('sqlite://'+SQLITE_DB, b3.console)
     self.storage.executeSql("@b3/sql/sqlite/b3.sql")
 def setUp(self):
     B3TestCase.setUp(self)
     self.client = Client(console=b3.console)
 def tearDown(self):
     """this method is called after each test"""
     B3TestCase.tearDown(self)
     self.storage.query("DROP DATABASE b3_test")
     self.storage.shutdown()
 def setUp(self):
     B3TestCase.setUp(self)
     self.clients = Clients(b3.console)
     self.clients.newClient(1, name="joe")
     self.clients.newClient(2, name=" H a    x\t0r")