def testFriendsAreFriends(self):
     """
     Test response from method <code>friends.areFriends</code>
     """
     jso = self.getAreFriendsResponse()
     areFriends = jso.cast()
     Assert.assertEquals(1, areFriends.__len__())
     friendInfo = areFriends.get(0)
     Assert.assertTrue(friendInfo.getAreFriends())
 def testFriendsGet(self):
     """
     Test response from method <code>friends.get</code>
     """
     friendList = self.getFriendList().cast()
     Assert.assertTrue(friendList.__len__() > 10)
     for i in range(0,friendList.__len__()):
         fmt = NumberFormat.getFormat(u"0")
         friendId = friendList.get(i)
         System.out.println(fmt.format(friendId))
 def testHasPermission(self):
     """
     Test method <code>users.hasAppPermission</code> response.
     """
     jso = self.getAppPermissionResponse()
     Assert.assertTrue(u"1".equals(java.str(jso)))