def testFriendParser(self):
        test_url = self.test_uid % 'http://weibo.com/%s/follow'
        parser = UserFriendParser(opener=self.opener,
                                  url=test_url,
                                  bundle=self.bundle)
        urls, bundles = self._get_urls_and_bundles(parser.parse())
        self.assertEqual(len(urls), 1)
        self.assertGreater(bundles, 0)
          
        user = self.users_collection.find_one({'uid': self.test_uid})
        self.assertEqual(len(bundles), len(user['follows']))
dataset/ETHPy150Open chineking/cola/tests/app/test_weibo.py/Test.testFriendParser/swapped operands of `%`