1. Gregory Petukhov
  2. pybb

Commits

Gregory Petukhov  committed f5f5ee5

Update tests

  • Participants
  • Parent commits b95d931
  • Branches default

Comments (0)

Files changed (1)

File pybb/tests.py

View file
  • Ignore whitespace
         self.post = Post.objects.create(topic=self.topic, user=self.user, markup='bbcode',
                                         body='[b]Hello world![/b]')
 
+
+class PybbUnitTest(PybbBaseTest):
+    def test_automatic_profile_creation(self):
+        profile = Profile.objects.get()
+        self.assertEqual(self.user.pybb_profile, profile)
+
     def test_post_deletion(self):
         post = Post.objects.create(topic=self.topic, user=self.user, body='xyz',
                                    markup='bbcode')
         self.assertEqual(forum.updated, post.created)
 
 
-class PybbUnitTest(PybbBaseTest):
-    def test_automatic_profile_creation(self):
-        profile = Profile.objects.get()
-        self.assertEqual(self.user.pybb_profile, profile)
-
-
 class PybbIntegrationTest(PybbBaseTest):
     def test_index_page(self):
         response = self.app.get(reverse('pybb_index'))