Show More
@@ -1,5 +1,5 b'' | |||||
1 | # coding=utf-8 |
|
1 | # coding=utf-8 | |
2 |
from django. |
|
2 | from django.test import TestCase | |
3 | from django.test.client import Client |
|
3 | from django.test.client import Client | |
4 | import time |
|
4 | import time | |
5 |
|
5 | |||
@@ -47,8 +47,6 b' class BoardTests(TestCase):' | |||||
47 |
|
47 | |||
48 | self.assertFalse(Post.objects.exists(post_id)) |
|
48 | self.assertFalse(Post.objects.exists(post_id)) | |
49 |
|
49 | |||
50 | # Authentication tests |
|
|||
51 |
|
||||
52 | def test_get_thread(self): |
|
50 | def test_get_thread(self): | |
53 | opening_post = self._create_post() |
|
51 | opening_post = self._create_post() | |
54 |
|
52 | |||
@@ -92,8 +90,6 b' class BoardTests(TestCase):' | |||||
92 | captcha_enabled = settings.ENABLE_CAPTCHA |
|
90 | captcha_enabled = settings.ENABLE_CAPTCHA | |
93 | settings.ENABLE_CAPTCHA = False |
|
91 | settings.ENABLE_CAPTCHA = False | |
94 |
|
92 | |||
95 | Post.objects.all().delete() |
|
|||
96 |
|
||||
97 | client = Client() |
|
93 | client = Client() | |
98 |
|
94 | |||
99 | valid_tags = u'tag1 tag_2 тег_3' |
|
95 | valid_tags = u'tag1 tag_2 тег_3' | |
@@ -136,9 +132,6 b' class BoardTests(TestCase):' | |||||
136 | def test_404(self): |
|
132 | def test_404(self): | |
137 | """Test receiving error 404 when opening a non-existent page""" |
|
133 | """Test receiving error 404 when opening a non-existent page""" | |
138 |
|
134 | |||
139 | Post.objects.all().delete() |
|
|||
140 | Tag.objects.all().delete() |
|
|||
141 |
|
||||
142 | tag_name = u'test_tag' |
|
135 | tag_name = u'test_tag' | |
143 | tag = Tag.objects.create(name=tag_name) |
|
136 | tag = Tag.objects.create(name=tag_name) | |
144 | client = Client() |
|
137 | client = Client() |
General Comments 0
You need to be logged in to leave comments.
Login now