test_views.py 2.12 KB
Newer Older
1
2
3
4
5
6
7
"""
go/test_views.py

References:
    - http://stackoverflow.com/a/11887308
"""

8
# Future Imports
9
10
from __future__ import (absolute_import, division, print_function,
                        unicode_literals)
11
12
13
14
15

# Django Imports
from django.test import TestCase

# App Imports
David Haynes's avatar
David Haynes committed
16
17
from go.views import (index, view, my_links, delete, signup, redirection,
                      useradmin)
18
19
20

class IndexTest(TestCase):
    """
David Haynes's avatar
David Haynes committed
21
    Test cases for the index view
22
    """
23
24
25

    def test_django_test(self):
        """
David Haynes's avatar
David Haynes committed
26
        Default test case, does not actually test anything
27
28
        """

29
        self.assertEqual("Hello World!", "Hello World!")
30
31
32

class ViewTest(TestCase):
    """
David Haynes's avatar
David Haynes committed
33
    Test cases for the "view" view
34
    """
35
36
37

    def test_django_test(self):
        """
David Haynes's avatar
David Haynes committed
38
        Default test case, does not actually test anything
39
40
        """

41
42
43
44
        self.assertEqual("Hello World!", "Hello World!")

class MyLinksTest(TestCase):
    """
David Haynes's avatar
David Haynes committed
45
    Test cases for the my_links view
46
    """
47
48
49

    def test_django_test(self):
        """
David Haynes's avatar
David Haynes committed
50
        Default test case, does not actually test anything
51
52
        """

53
54
55
56
        self.assertEqual("Hello World!", "Hello World!")

class DeleteTest(TestCase):
    """
David Haynes's avatar
David Haynes committed
57
    Test cases for the delete view
58
    """
59
60
61

    def test_django_test(self):
        """
David Haynes's avatar
David Haynes committed
62
        Default test case, does not actually test anything
63
64
        """

65
66
67
68
        self.assertEqual("Hello World!", "Hello World!")

class SignupTest(TestCase):
    """
David Haynes's avatar
David Haynes committed
69
    Test cases for the signup view
70
    """
71
72
73

    def test_django_test(self):
        """
David Haynes's avatar
David Haynes committed
74
        Default test case, does not actually test anything
75
76
        """

77
78
79
80
        self.assertEqual("Hello World!", "Hello World!")

class RedirectionTest(TestCase):
    """
David Haynes's avatar
David Haynes committed
81
    Test cases for the redirection view
82
    """
83
84
85

    def test_django_test(self):
        """
David Haynes's avatar
David Haynes committed
86
        Default test case, does not actually test anything
87
88
        """

89
90
91
92
        self.assertEqual("Hello World!", "Hello World!")

class UserAdminTest(TestCase):
    """
David Haynes's avatar
David Haynes committed
93
    Test cases for the useradmin view
94
    """
95
96
97

    def test_django_test(self):
        """
David Haynes's avatar
David Haynes committed
98
        Default test case, does not actually test anything
99
100
        """

101
        self.assertEqual("Hello World!", "Hello World!")