def test_root_video_audio_not_logged_in(self): m_webclient.is_logged_in.return_value = False try: iterator = actions.root({}) self.assertEqual(len(list(iterator)), 5) finally: m_webclient.is_logged_in.return_value = True
def test_root_action(self): context = actions.root({}) self.assertEqual(len(context['listing']), 4)
def test_root_video_audio(self): iterator = actions.root({}) self.assertEqual(len(list(iterator)), 5)