Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40_Lab01_Willowisp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ana Gabrielle S. Caligagan
CSCI40_Lab01_Willowisp
Commits
c91e10c5
Commit
c91e10c5
authored
Mar 06, 2020
by
Ana Gabrielle S. Caligagan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created tests
parent
c362a7c8
Pipeline
#831
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
tests.py
heroes/tests.py
+28
-0
No files found.
heroes/tests.py
View file @
c91e10c5
from
django.test
import
TestCase
from
django.test
import
TestCase
class
HomePageTest
(
TestCase
):
def
test_uses_home_template
(
self
):
response
=
self
.
client
.
get
(
'/'
)
self
.
assertTemplateUsed
(
response
,
'home.html'
)
class
CloudTest
(
TestCase
):
def
test_uses_cloud_template
(
self
):
response
=
self
.
client
.
get
(
'/cloud/'
)
self
.
assertTemplateUsed
(
response
,
'detail_cloud.html'
)
class
JesterTest
(
TestCase
):
def
test_uses_jester_template
(
self
):
response
=
self
.
client
.
get
(
'/jester/'
)
self
.
assertTemplateUsed
(
response
,
'detail_jester.html'
)
class
SunfloweyTest
(
TestCase
):
def
test_uses_sunflowey_template
(
self
):
response
=
self
.
client
.
get
(
'/sunflowey/'
)
self
.
assertTemplateUsed
(
response
,
'detail_sunflowey.html'
)
# Create your tests here.
# Create your tests here.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment