def runTest(self): entry = sourpy.get_entry("1") self.assertEqual(entry["creator"], u"ssg") self.assertEqual(entry["creator-url"], u"/biri/ssg") self.assertEqual(entry["id"], u"1") self.assertEqual(entry["commentText"], u"gitar calmak icin kullanilan minik plastik garip nesne.") self.assertEqual(entry["creation-time"], u"1999-02-15T00:00:00") self.assertEqual(entry["last-update-time"], u"1999-02-15T00:00:00") self.assertEqual(entry["title"], u"pena")
def runTest(self): with self.assertRaises(AttributeError): entry = sourpy.get_entry(4)
def runTest(self): with self.assertRaises(sourpy.common.SourPyException): entry = sourpy.get_entry("-1")