Exemple #1
0
 def test_index(self):
     items = index()
     self.assertTrue(len(items) > 35)
     expected = {
         'info': {
         'plot': u'Vim\u2019s list feature can be used to reveal hidden characters, such as tabstops and newlines. In this episode, I demonstrate how to customise the appearance of these characters by tweaking the listchars setting. I go on to show how to make these invisible characters blend in with your colortheme.'},
          'is_playable': True,
          'label': u'#1 Show invisibles',
          'path': u'http://media.vimcasts.org/videos/1/show_invisibles.m4v',
          'thumbnail': u'http://vimcasts.org/images/posters/show_invisibles.png'
     }
     self.assertEqual(items[0], expected)
Exemple #2
0
 def test_index(self):
     items = index()
     self.assertTrue(len(items) > 35)
     expected = {
         'info': {
             'plot':
             u'Vim\u2019s list feature can be used to reveal hidden characters, such as tabstops and newlines. In this episode, I demonstrate how to customise the appearance of these characters by tweaking the listchars setting. I go on to show how to make these invisible characters blend in with your colortheme.\n'
         },
         'is_playable': True,
         'label': u'#1 Show invisibles',
         'path': u'http://media.vimcasts.org/videos/1/show_invisibles.m4v',
         'thumbnail':
         u'http://vimcasts.org/images/posters/show_invisibles.png'
     }
     self.assertEqual(items[0], expected)
  def test_index(self):
    items = index()
    rubyConf2014 = [i for i in items if i['path'] == "plugin://plugin.video.confreaks/events/rubyconf2014/"][0]
    gardenCityRuby2015 = [i for i in items if i['path'] == "plugin://plugin.video.confreaks/events/gardencityrb2015/"][0]

    # There should be more than 150 events in total
    self.assertTrue(len(items) > 150)

    # Ensure RubyConf 2014 data is correct
    self.assertEqual(rubyConf2014, {
      'label': u'Ruby Conference 2014  [COLOR mediumslateblue]Nov 17 - Nov 19[/COLOR]',
      'path': 'plugin://plugin.video.confreaks/events/rubyconf2014/',
      #'icon': u'http://s3-us-west-2.amazonaws.com/confreaks-tv3/production/events/logos/000/000/225/rubyconf-website-small-thumb.png?1422307583',
    })

    # Ensure Garden City Ruby 2015 data is correct
    self.assertEqual(gardenCityRuby2015, {
      'label': u'Garden City Ruby 2015  [COLOR mediumslateblue]Jan 10[/COLOR]',
      'path': 'plugin://plugin.video.confreaks/events/gardencityrb2015/'
    })
 def test_index(self):
   items = index()
   self.assertTrue(len(items) > 150)