当前位置: 首页>>代码示例>>Python>>正文


Python helper.assertGreaterEqual函数代码示例

本文整理汇总了Python中test.helper.assertGreaterEqual函数的典型用法代码示例。如果您正苦于以下问题:Python assertGreaterEqual函数的具体用法?Python assertGreaterEqual怎么用?Python assertGreaterEqual使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了assertGreaterEqual函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_bambuser_channel

 def test_bambuser_channel(self):
     dl = FakeYDL()
     ie = BambuserChannelIE(dl)
     result = ie.extract('http://bambuser.com/channel/pixelversity')
     self.assertIsPlaylist(result)
     self.assertEqual(result['title'], 'pixelversity')
     assertGreaterEqual(self, len(result['entries']), 60)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例2: test_livestream_event

 def test_livestream_event(self):
     dl = FakeYDL()
     ie = LivestreamIE(dl)
     result = ie.extract('http://new.livestream.com/tedx/cityenglish')
     self.assertIsPlaylist(result)
     self.assertEqual(result['title'], 'TEDCity2.0 (English)')
     assertGreaterEqual(self, len(result['entries']), 4)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例3: test_livestreamoriginal_folder

 def test_livestreamoriginal_folder(self):
     dl = FakeYDL()
     ie = LivestreamOriginalIE(dl)
     result = ie.extract('https://www.livestream.com/newplay/folder?dirId=a07bf706-d0e4-4e75-a747-b021d84f2fd3')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], 'a07bf706-d0e4-4e75-a747-b021d84f2fd3')
     assertGreaterEqual(self, len(result['entries']), 28)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例4: test_soundcloud_likes

 def test_soundcloud_likes(self):
     dl = FakeYDL()
     ie = SoundcloudUserIE(dl)
     result = ie.extract('https://soundcloud.com/the-concept-band/likes')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], '9615865')
     assertGreaterEqual(self, len(result['entries']), 1)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例5: test_soundcloud_set

 def test_soundcloud_set(self):
     dl = FakeYDL()
     ie = SoundcloudSetIE(dl)
     result = ie.extract('https://soundcloud.com/the-concept-band/sets/the-royal-concept-ep')
     self.assertIsPlaylist(result)
     self.assertEqual(result['title'], 'The Royal Concept EP')
     assertGreaterEqual(self, len(result['entries']), 6)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例6: test_ustream_channel

 def test_ustream_channel(self):
     dl = FakeYDL()
     ie = UstreamChannelIE(dl)
     result = ie.extract('http://www.ustream.tv/channel/channeljapan')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], '10874166')
     assertGreaterEqual(self, len(result['entries']), 54)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例7: test_xtube_user

 def test_xtube_user(self):
     dl = FakeYDL()
     ie = XTubeUserIE(dl)
     result = ie.extract('http://www.xtube.com/community/profile.php?user=greenshowers')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], 'greenshowers')
     assertGreaterEqual(self, len(result['entries']), 155)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例8: test_bandcamp_album

 def test_bandcamp_album(self):
     dl = FakeYDL()
     ie = BandcampAlbumIE(dl)
     result = ie.extract('http://mpallante.bandcamp.com/album/nightmare-night-ep')
     self.assertIsPlaylist(result)
     self.assertEqual(result['title'], 'Nightmare Night EP')
     assertGreaterEqual(self, len(result['entries']), 4)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例9: test_toypics_user

 def test_toypics_user(self):
     dl = FakeYDL()
     ie = ToypicsUserIE(dl)
     result = ie.extract('http://videos.toypics.net/Mikey')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], 'Mikey')
     assertGreaterEqual(self, len(result['entries']), 17)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例10: test_bandcamp_album

 def test_bandcamp_album(self):
     dl = FakeYDL()
     ie = BandcampAlbumIE(dl)
     result = ie.extract('http://nightbringer.bandcamp.com/album/hierophany-of-the-open-grave')
     self.assertIsPlaylist(result)
     self.assertEqual(result['title'], 'Hierophany of the Open Grave')
     assertGreaterEqual(self, len(result['entries']), 9)
开发者ID:DavidFabijan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例11: test_rutube_person

 def test_rutube_person(self):
     dl = FakeYDL()
     ie = RutubePersonIE(dl)
     result = ie.extract('http://rutube.ru/video/person/313878/')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], '313878')
     assertGreaterEqual(self, len(result['entries']), 37)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例12: test_rutube_channel

 def test_rutube_channel(self):
     dl = FakeYDL()
     ie = RutubeChannelIE(dl)
     result = ie.extract('http://rutube.ru/tags/video/1800/')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], '1800')
     assertGreaterEqual(self, len(result['entries']), 68)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例13: test_TeacherTubeUser

 def test_TeacherTubeUser(self):
     dl = FakeYDL()
     ie = TeacherTubeUserIE(dl)
     result = ie.extract('http://www.teachertube.com/user/profile/rbhagwati2')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], 'rbhagwati2')
     assertGreaterEqual(self, len(result['entries']), 179)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例14: test_dailymotion_user

 def test_dailymotion_user(self):
     dl = FakeYDL()
     ie = DailymotionUserIE(dl)
     result = ie.extract('https://www.dailymotion.com/user/nqtv')
     self.assertIsPlaylist(result)
     assertGreaterEqual(self, len(result['entries']), 100)
     self.assertEqual(result['title'], 'Rémi Gaillard')
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:7,代码来源:test_playlists.py

示例15: test_ted_playlist

 def test_ted_playlist(self):
     dl = FakeYDL()
     ie = TEDIE(dl)
     result = ie.extract('http://www.ted.com/playlists/who_are_the_hackers')
     self.assertIsPlaylist(result)
     self.assertEqual(result['id'], '10')
     self.assertEqual(result['title'], 'Who are the hackers?')
     assertGreaterEqual(self, len(result['entries']), 6)
开发者ID:AbhimanyuAryan,项目名称:youtube-dl,代码行数:8,代码来源:test_playlists.py


注:本文中的test.helper.assertGreaterEqual函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。