Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
Lab1
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
Kyla Nicole Villegas
Lab1
Commits
f53a0a18
Commit
f53a0a18
authored
Mar 07, 2020
by
Kyla Villegas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AttributeError from heroes/views.py
parent
c123899d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
tests.cpython-38.pyc
heroes/__pycache__/tests.cpython-38.pyc
+0
-0
tests.py
heroes/tests.py
+1
-1
No files found.
heroes/__pycache__/tests.cpython-38.pyc
View file @
f53a0a18
No preview for this file type
heroes/tests.py
View file @
f53a0a18
...
@@ -15,5 +15,5 @@ class HomePageTest(TestCase):
...
@@ -15,5 +15,5 @@ class HomePageTest(TestCase):
response
=
home_page
(
request
)
response
=
home_page
(
request
)
html
=
response
.
content
.
decode
(
'utf8'
)
html
=
response
.
content
.
decode
(
'utf8'
)
self
.
assertTrue
(
html
.
startswith
(
'<html>'
))
self
.
assertTrue
(
html
.
startswith
(
'<html>'
))
self
.
assertIn
(
'<title>The Will of the Wisps Wiki</title>'
'
, html)
self
.
assertIn
(
'<title>The Will of the Wisps Wiki</title>'
,
html
)
self
.
assertTrue
(
html
.
endswith
(
'</html>'
))
self
.
assertTrue
(
html
.
endswith
(
'</html>'
))
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