def testUserListOnePage(self):
     result = Mock()
     result.json.return_value = { 'page':'1', 'pages':'1', 'lists':['one', 'two', 'three']}
     #Patch requests.get
     with patch.object(requests, 'get') as mockGet:
         mockGet.return_value = result
         self.assertTrue(bibliocommons.userLists('user') == ['one', 'two', 'three'])
 def testUserListManyPage(self):
     #Patch requests.get
     with patch.object(requests, 'get') as mockGet:
         mockGet.side_effect = self.manylist_sideeffect
         self.assertTrue(bibliocommons.userLists('user') == ['1', '2', '3', '4'])