示例#1
0
文件: tests.py 项目: prabhu/macutils
 def testGetByUID(self):
     """ Test getByUID """
     allr = addressbook.all()
     for a in allr:
         self.assert_(addressbook.getByUID(a['uid']))
         break
示例#2
0
文件: tests.py 项目: prabhu/macutils
 def testAll(self):
     """ Test retrieving all records """
     self.assert_(addressbook.all())