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