Example #1
0
class TestFriendList(unittest.TestCase):

    def setUp(self):
        self.tmpfilepath = tempfile.mktemp()
        self.tmpdirpath = os.path.join(tempfile.gettempdir(), 'testdb')
        self.flist = ExternalFriendList(friend_file=self.tmpfilepath, db_dir=self.tmpdirpath)

    def tearDown(self):
        self.flist.clear()
        try:
            os.remove(self.tmpfilepath)
        except Exception, msg:
            pass
Example #2
0
class TestFriendList(unittest.TestCase):
    
    def setUp(self):
        self.tmpfilepath = tempfile.mktemp()
        self.tmpdirpath = os.path.join(tempfile.gettempdir(), 'testdb')
        self.flist = ExternalFriendList(friend_file=self.tmpfilepath, db_dir=self.tmpdirpath)
        
    def tearDown(self):
        self.flist.clear()
        try:
            os.remove(self.tmpfilepath)
        except Exception, msg:
            pass
Example #3
0
 def setUp(self):
     self.tmpfilepath = tempfile.mktemp()
     self.tmpdirpath = os.path.join(tempfile.gettempdir(), 'testdb')
     self.flist = ExternalFriendList(friend_file=self.tmpfilepath, db_dir=self.tmpdirpath)
Example #4
0
 def xxtest_normal(self):
     flist = ExternalFriendList()
     flist.updateFriendList()
     friends = flist.getFriends()
     print friends
Example #5
0
 def setUp(self):
     self.tmpfilepath = tempfile.mktemp()
     self.tmpdirpath = os.path.join(tempfile.gettempdir(), 'testdb')
     self.flist = ExternalFriendList(friend_file=self.tmpfilepath, db_dir=self.tmpdirpath)
Example #6
0
 def xxtest_normal(self):
     flist = ExternalFriendList()
     flist.updateFriendList()
     friends = flist.getFriends()
     print friends