Exemplo n.º 1
0
 def test_video_list_string_multiple_args2(self):
     id = api.get_id('talksportmagazine', 'pewdiepie')
     result = api.video_list(*id)
     self.assertEqual(result[1], 'oLAw5EGe1zY')
Exemplo n.º 2
0
 def test_video_list_no_keyword(self):
     id = api.get_id('talksportmagazine')
     result = api.video_list(*id, 'city')
     self.assertEqual(result[0], 'dunnoyet')
Exemplo n.º 3
0
 def test_video_list_string(self):
     id = api.get_id('talksportmagazine')
     result = api.video_list(*id)
     self.assertEqual(result[0], '-C1as8I-qhg')
Exemplo n.º 4
0
 def test_video_list_string_multiple_args1(self):
     id = api.get_id('talksportmagazine', 'pewdiepie')
     result = api.video_list(*id)
     self.assertEqual(result[0], '-C1as8I-qhg')
Exemplo n.º 5
0
 def test_get_id_empty(self):
     result = api.get_id()
     self.assertEqual(result, None)
Exemplo n.º 6
0
 def test_get_id_int(self):
     result = api.get_id(1)
     self.assertEqual(result[0], 'UCU8hB4IeMUOc0BS2RApPqFg')
Exemplo n.º 7
0
 def test_get_id_string_multiple_args2(self):
     result = api.get_id('talksportmagazine', 'pewdiepie')
     self.assertEqual(result[1], 'UC-lHJZR3Gqxm24_Vd_AJ5Yw')
Exemplo n.º 8
0
 def test_get_id_string_multiple_args1(self):
     result = api.get_id('talksportmagazine', 'pewdiepie')
     self.assertEqual(result[0], 'UCWw6scNyopJ0yjMu1SyOEyw')
Exemplo n.º 9
0
 def test_get_id_string(self):
     result = api.get_id('pewdiepie')
     self.assertEqual(result[0], 'UC-lHJZR3Gqxm24_Vd_AJ5Yw')