[ivi] Replace tests
This commit is contained in:
		@@ -209,20 +209,20 @@ class TestPlaylists(unittest.TestCase):
 | 
			
		||||
    def test_ivi_compilation(self):
 | 
			
		||||
        dl = FakeYDL()
 | 
			
		||||
        ie = IviCompilationIE(dl)
 | 
			
		||||
        result = ie.extract('http://www.ivi.ru/watch/dezhurnyi_angel')
 | 
			
		||||
        result = ie.extract('http://www.ivi.ru/watch/dvoe_iz_lartsa')
 | 
			
		||||
        self.assertIsPlaylist(result)
 | 
			
		||||
        self.assertEqual(result['id'], 'dezhurnyi_angel')
 | 
			
		||||
        self.assertEqual(result['title'], 'Дежурный ангел (2010 - 2012)')
 | 
			
		||||
        self.assertTrue(len(result['entries']) >= 16)
 | 
			
		||||
        self.assertEqual(result['id'], 'dvoe_iz_lartsa')
 | 
			
		||||
        self.assertEqual(result['title'], 'Двое из ларца (2006 - 2008)')
 | 
			
		||||
        self.assertTrue(len(result['entries']) >= 24)
 | 
			
		||||
 | 
			
		||||
    def test_ivi_compilation_season(self):
 | 
			
		||||
        dl = FakeYDL()
 | 
			
		||||
        ie = IviCompilationIE(dl)
 | 
			
		||||
        result = ie.extract('http://www.ivi.ru/watch/dezhurnyi_angel/season1')
 | 
			
		||||
        result = ie.extract('http://www.ivi.ru/watch/dvoe_iz_lartsa/season1')
 | 
			
		||||
        self.assertIsPlaylist(result)
 | 
			
		||||
        self.assertEqual(result['id'], 'dezhurnyi_angel/season1')
 | 
			
		||||
        self.assertEqual(result['title'], 'Дежурный ангел (2010 - 2012) 1 сезон')
 | 
			
		||||
        self.assertTrue(len(result['entries']) >= 16)
 | 
			
		||||
        self.assertEqual(result['id'], 'dvoe_iz_lartsa/season1')
 | 
			
		||||
        self.assertEqual(result['title'], 'Двое из ларца (2006 - 2008) 1 сезон')
 | 
			
		||||
        self.assertTrue(len(result['entries']) >= 12)
 | 
			
		||||
        
 | 
			
		||||
    def test_imdb_list(self):
 | 
			
		||||
        dl = FakeYDL()
 | 
			
		||||
 
 | 
			
		||||
@@ -33,14 +33,14 @@ class IviIE(InfoExtractor):
 | 
			
		||||
        },
 | 
			
		||||
        # Serial's serie
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://www.ivi.ru/watch/dezhurnyi_angel/74791',
 | 
			
		||||
            'md5': '3e6cc9a848c1d2ebcc6476444967baa9',
 | 
			
		||||
            'url': 'http://www.ivi.ru/watch/dvoe_iz_lartsa/9549',
 | 
			
		||||
            'md5': '221f56b35e3ed815fde2df71032f4b3e',
 | 
			
		||||
            'info_dict': {
 | 
			
		||||
                'id': '74791',
 | 
			
		||||
                'id': '9549',
 | 
			
		||||
                'ext': 'mp4',
 | 
			
		||||
                'title': 'Дежурный ангел - 1 серия',
 | 
			
		||||
                'duration': 2490,
 | 
			
		||||
                'thumbnail': 'http://thumbs.ivi.ru/f7.vcp.digitalaccess.ru/contents/8/e/bc2f6c2b6e5d291152fdd32c059141.jpg',
 | 
			
		||||
                'title': 'Двое из ларца - Серия 1',
 | 
			
		||||
                'duration': 2655,
 | 
			
		||||
                'thumbnail': 'http://thumbs.ivi.ru/f15.vcp.digitalaccess.ru/contents/8/4/0068dc0677041f3336b7c2baad8fc0.jpg',
 | 
			
		||||
            },
 | 
			
		||||
            'skip': 'Only works from Russia',
 | 
			
		||||
         }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user