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)
Exemple #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)
Exemple #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)
Exemple #9
0
 def testGood20(self):
     feed_id = feed_identifier.identify(self.load('rss2sample.xml'), 'rss')
     self.assertEquals('http://liftoff.msfc.nasa.gov/', feed_id)
Exemple #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)
Exemple #11
0
 def testGood091(self):
     feed_id = feed_identifier.identify(self.load('sampleRss091.xml'),
                                        'rss')
     self.assertEquals('http://writetheweb.com', feed_id)
Exemple #12
0
 def testWhitespace(self):
     feed_id = feed_identifier.identify(self.load('whitespace_id.xml'),
                                        'atom')
     self.assertEquals('my feed id here', feed_id)
Exemple #13
0
 def testIncorrectFormat(self):
     feed_id = feed_identifier.identify(self.load('rss_rdf.xml'), 'atom')
     self.assertTrue(feed_id is None)
Exemple #14
0
 def testNoFeedId(self):
     feed_id = feed_identifier.identify(self.load('atom_no_id.xml'), 'atom')
     self.assertTrue(feed_id is None)
 def testGood091(self):
   feed_id = feed_identifier.identify(self.load('sampleRss091.xml'), 'rss')
   self.assertEquals('http://writetheweb.com', feed_id)
Exemple #16
0
 def testGoodRdf(self):
     feed_id = feed_identifier.identify(self.load('rss_rdf.xml'), 'rss')
     self.assertEquals('http://writetheweb.com', feed_id)
 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)
Exemple #18
0
 def testNoFeedId(self):
     feed_id = feed_identifier.identify(self.load('rss_no_link.xml'), 'rss')
     self.assertTrue(feed_id is None)
 def testGoodRdf(self):
   feed_id = feed_identifier.identify(self.load('rss_rdf.xml'), 'rss')
   self.assertEquals('http://writetheweb.com', feed_id)
Exemple #20
0
 def testIncorrectFormat(self):
     feed_id = feed_identifier.identify(self.load('parsing.xml'), 'rss')
     self.assertTrue(feed_id is None)
 def testIncorrectFormat(self):
   feed_id = feed_identifier.identify(self.load('parsing.xml'), 'rss')
   self.assertTrue(feed_id is None)
 def testFullNamespace(self):
   feed_id = feed_identifier.identify(self.load('atom_namespace.xml'), 'atom')
   self.assertEquals('http://example.com/feeds/delta', feed_id)