예제 #1
0
 def test_none(self):
     a = Article(title='Some Title', body=None)
     self.assertEqual(a.body, None)
예제 #2
0
 def test_assign_splittext(self):
     a = Article(title='Some Title')
     a.body = self.post.body
     self.assertEquals(a.body.excerpt, u'summary\n')
예제 #3
0
 def test_assign_splittext(self):
     a = Article(title='Some Title')
     a.body = self.post.body
     self.assertEqual(a.body.excerpt, 'summary\n')
예제 #4
0
 def test_assign_splittext(self):
     a = Article(title="Some Title")
     a.body = self.post.body
     self.assertEqual(a.body.excerpt, "summary\n")