示例#1
0
class RDBTest(unittest.TestCase):

    def setUp(self):
        self.db = RDB()
        self.db.open(HOST, PORT)

    def tearDown(self):
        self.db.clear()
        self.db.close()
        self.db = None
示例#2
0
 def setUp(self):
     self.db = RDB()
     self.db.open(HOST, PORT)