Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
184424-Santos-Lab1-CSCI-40
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
Kirby Ezekiel Santos
184424-Santos-Lab1-CSCI-40
Commits
1efe38c6
Commit
1efe38c6
authored
Mar 07, 2020
by
Kirby Ezekiel Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few bugs in tests.py
parent
83c618b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests.py
heroes/tests.py
+3
-3
No files found.
heroes/tests.py
View file @
1efe38c6
...
...
@@ -34,21 +34,21 @@ class CheckContents(unittest.TestCase):
self
.
browser
.
get
(
'http://localhost:8000/hero/cloud'
)
cloudTitle
=
self
.
browser
.
find_element_by_id
(
'cloudTitle'
)
self
.
assertEqual
(
cloudTitle
.
get_attribute
(
'innerHTML'
),
'Detail - Cloud'
)
cloudHeader
=
self
.
browser
.
find_element_b_id
(
'cloudHeader'
)
cloudHeader
=
self
.
browser
.
find_element_b
y
_id
(
'cloudHeader'
)
self
.
assertEqual
(
cloudHeader
.
get_attribute
(
'innerHTML'
),
'Detail - Cloud'
)
def
check_jester_page_title_and_heading
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/hero/jester'
)
jesterTitle
=
self
.
browser
.
find_element_by_id
(
'jesterTitle'
)
self
.
assertEqual
(
jesterTitle
.
get_attribute
(
'innerHTML'
),
'Detail - Jester'
)
jesterHeader
=
self
.
browser
.
find_element_b_id
(
'jesterHeader'
)
jesterHeader
=
self
.
browser
.
find_element_b
y
_id
(
'jesterHeader'
)
self
.
assertEqual
(
jesterHeader
.
get_attribute
(
'innerHTML'
),
'Detail - Jester'
)
def
check_sunflowey_page_title_and_heading
(
self
):
self
.
browser
.
get
(
'http://localhost:8000/hero/sunflowey'
)
sunfloweyTitle
=
self
.
browser
.
find_element_by_id
(
'sunfloweyTitle'
)
self
.
assertEqual
(
sunfloweyTitle
.
get_attribute
(
'innerHTML'
),
'Detail - Sunflowey'
)
sunfloweyHeader
=
self
.
browser
.
find_element_b_id
(
'sunfloweyHeader'
)
sunfloweyHeader
=
self
.
browser
.
find_element_b
y
_id
(
'sunfloweyHeader'
)
self
.
assertEqual
(
sunfloweyHeader
.
get_attribute
(
'innerHTML'
),
'Detail - Sunflowey'
)
...
...
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