Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 4
0
 def xxtest_normal(self):
     flist = ExternalFriendList()
     flist.updateFriendList()
     friends = flist.getFriends()
     print friends
Exemplo n.º 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)
Exemplo n.º 6
0
 def xxtest_normal(self):
     flist = ExternalFriendList()
     flist.updateFriendList()
     friends = flist.getFriends()
     print friends