def testWhitespace(self):
   feed_id = feed_identifier.identify(self.load('whitespace_id.xml'), 'atom')
   self.assertEquals('my feed id here', feed_id)
 def testNoFeedId(self):
   feed_id = feed_identifier.identify(self.load('atom_no_id.xml'), 'atom')
   self.assertTrue(feed_id is None)
 def testIncorrectFormat(self):
   feed_id = feed_identifier.identify(self.load('rss_rdf.xml'), 'atom')
   self.assertTrue(feed_id is None)
Ejemplo n.º 4
0
 def testGood(self):
     feed_id = feed_identifier.identify(self.load('parsing.xml'), 'atom')
     self.assertEquals('tag:diveintomark.org,2001-07-29:/', feed_id)
 def testGood(self):
   feed_id = feed_identifier.identify(self.load('parsing.xml'), 'atom')
   self.assertEquals('tag:diveintomark.org,2001-07-29:/', feed_id)
 def testGood20(self):
   feed_id = feed_identifier.identify(self.load('rss2sample.xml'), 'rss')
   self.assertEquals('http://liftoff.msfc.nasa.gov/', feed_id)
 def testNoFeedId(self):
   feed_id = feed_identifier.identify(self.load('rss_no_link.xml'), 'rss')
   self.assertTrue(feed_id is None)
Ejemplo n.º 8
0
 def testGood092(self):
     feed_id = feed_identifier.identify(self.load('sampleRss092.xml'),
                                        'rss')
     self.assertEquals(
         'http://www.scripting.com/blog/categories/gratefulDead.html',
         feed_id)
Ejemplo n.º 9
0
 def testGood20(self):
     feed_id = feed_identifier.identify(self.load('rss2sample.xml'), 'rss')
     self.assertEquals('http://liftoff.msfc.nasa.gov/', feed_id)
Ejemplo n.º 10
0
 def testFullNamespace(self):
     feed_id = feed_identifier.identify(self.load('atom_namespace.xml'),
                                        'atom')
     self.assertEquals('http://example.com/feeds/delta', feed_id)
Ejemplo n.º 11
0
 def testGood091(self):
     feed_id = feed_identifier.identify(self.load('sampleRss091.xml'),
                                        'rss')
     self.assertEquals('http://writetheweb.com', feed_id)
Ejemplo n.º 12
0
 def testWhitespace(self):
     feed_id = feed_identifier.identify(self.load('whitespace_id.xml'),
                                        'atom')
     self.assertEquals('my feed id here', feed_id)
Ejemplo n.º 13
0
 def testIncorrectFormat(self):
     feed_id = feed_identifier.identify(self.load('rss_rdf.xml'), 'atom')
     self.assertTrue(feed_id is None)
Ejemplo n.º 14
0
 def testNoFeedId(self):
     feed_id = feed_identifier.identify(self.load('atom_no_id.xml'), 'atom')
     self.assertTrue(feed_id is None)
Ejemplo n.º 15
0
 def testGood091(self):
   feed_id = feed_identifier.identify(self.load('sampleRss091.xml'), 'rss')
   self.assertEquals('http://writetheweb.com', feed_id)
Ejemplo n.º 16
0
 def testGoodRdf(self):
     feed_id = feed_identifier.identify(self.load('rss_rdf.xml'), 'rss')
     self.assertEquals('http://writetheweb.com', feed_id)
Ejemplo n.º 17
0
 def testGood092(self):
   feed_id = feed_identifier.identify(self.load('sampleRss092.xml'), 'rss')
   self.assertEquals(
       'http://www.scripting.com/blog/categories/gratefulDead.html',
       feed_id)
Ejemplo n.º 18
0
 def testNoFeedId(self):
     feed_id = feed_identifier.identify(self.load('rss_no_link.xml'), 'rss')
     self.assertTrue(feed_id is None)
Ejemplo n.º 19
0
 def testGoodRdf(self):
   feed_id = feed_identifier.identify(self.load('rss_rdf.xml'), 'rss')
   self.assertEquals('http://writetheweb.com', feed_id)
Ejemplo n.º 20
0
 def testIncorrectFormat(self):
     feed_id = feed_identifier.identify(self.load('parsing.xml'), 'rss')
     self.assertTrue(feed_id is None)
Ejemplo n.º 21
0
 def testIncorrectFormat(self):
   feed_id = feed_identifier.identify(self.load('parsing.xml'), 'rss')
   self.assertTrue(feed_id is None)
Ejemplo n.º 22
0
 def testFullNamespace(self):
   feed_id = feed_identifier.identify(self.load('atom_namespace.xml'), 'atom')
   self.assertEquals('http://example.com/feeds/delta', feed_id)