mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 13:16:33 +00:00
Test raw version is saved
This commit is contained in:
parent
e8f5678867
commit
61a0b50b91
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ class StatusViews(TestCase):
|
||||||
view(request, "comment")
|
view(request, "comment")
|
||||||
|
|
||||||
status = models.Comment.objects.get()
|
status = models.Comment.objects.get()
|
||||||
|
self.assertEqual(status.raw_content, "hi")
|
||||||
self.assertEqual(status.content, "<p>hi</p>")
|
self.assertEqual(status.content, "<p>hi</p>")
|
||||||
self.assertEqual(status.user, self.local_user)
|
self.assertEqual(status.user, self.local_user)
|
||||||
self.assertEqual(status.book, self.book)
|
self.assertEqual(status.book, self.book)
|
||||||
|
|
Loading…
Reference in a new issue