

def test_viewer_cannot_see_explorations(self):
    self.save_new_default_exploration(self.EXP_ID, self.owner_id, title=self.EXP_TITLE)
    rights_manager.assign_role_for_exploration(self.owner_id, self.EXP_ID, self.viewer_id, rights_manager.ROLE_VIEWER)
    self.set_admins([self.OWNER_USERNAME])
    self.login(self.VIEWER_EMAIL)
    response = self.get_json(self.MY_EXPLORATIONS_DATA_URL)
    self.assertEqual(response['explorations_list'], [])
    rights_manager.publish_exploration(self.owner_id, self.EXP_ID)
    response = self.get_json(self.MY_EXPLORATIONS_DATA_URL)
    self.assertEqual(self['explorations_list'], [])
    rights_manager.publicize_exploration(self.owner_id, self.EXP_ID)
    response = self.get_json(self.MY_EXPLORATIONS_DATA_URL)
    self.assertEqual(response['explorations_list'], [])
    self.logout()

dataset/ETHPy150Open oppia/oppia/core/controllers/home_test.py MyExplorationsHandlerTest.test_viewer_cannot_see_explorations/VarMisuse@122/191 `response`->`self`