-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.py
37 lines (32 loc) · 1.02 KB
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import unittest
from django.test.client import Client
#############################################################################################
# Commenting Test Cases
#############################################################################################
#
# What I want to test:
#
# - Comments with valid information (but possibly invalid through not having enough fields)
# - Name Email Address
# - 000 - Invalid
# - 001 - Invalid
# - 010 - Invalid
# - 011 - Invalid
# - 100 - Invalid
# - 101 - Invalid
# - 110 - Valid
# - 111 - Valid
#
# - Comment test that is spam
# - Proper result page displayed
# - Comment not seen on post page.
#
# - For successful comments
# - Check that appropriate result page is displayed
# - Check that comment is properly put on post page
#
# - Comments should not be placed on any post except for the one that it is tied to
#
#############################################################################################
class ValidComment000(unittest.TestCase):
def setUp(self):