def test_none(self): a = Article(title='Some Title', body=None) self.assertEqual(a.body, None)
def test_assign_splittext(self): a = Article(title='Some Title') a.body = self.post.body self.assertEquals(a.body.excerpt, u'summary\n')
def test_assign_splittext(self): a = Article(title='Some Title') a.body = self.post.body self.assertEqual(a.body.excerpt, 'summary\n')
def test_assign_splittext(self): a = Article(title="Some Title") a.body = self.post.body self.assertEqual(a.body.excerpt, "summary\n")