Beispiel #1
0
 def test_is_unique(self):
     entry1 = dict(title="First", link="http://foo1.com")
     feedutil.generate_guid(entry1)
     entry2 = dict(title="Second", link="http://foo1.com")
     feedutil.generate_guid(entry2)
     self.assertNotEqual(entry1, entry2)
Beispiel #2
0
 def test_handles_not_encodable_text(self):
     entry = dict(title=NOT_ENCODEABLE, link="http://foo.com")
     guid = feedutil.generate_guid(entry)
     self.assertTrue(guid)