Example #1
0
 def test_new_post_with_category(self):
     c = Category(name='Python')
     c.put()
     p = Post(title="Primo Post", category=c)
     p.put()
     return self.assertEqual(p.category.name, 'Python')
Example #2
0
 def test_new_post(self):
     p = Post(title="Primo post")
     p.put()
     return self.assertEqual(p.title, "Primo post")