示例#1
0
 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
示例#2
0
 def test_root_action(self):
     context = actions.root({})
     self.assertEqual(len(context['listing']), 4)
示例#3
0
 def test_root_video_audio(self):
     iterator = actions.root({})
     self.assertEqual(len(list(iterator)), 5)