Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
ba20a50a
Commit
ba20a50a
authored
Oct 20, 2016
by
Daniel W Bond
Browse files
created first view test case for the housing app
parent
1eb4ba35
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/housing/test_views.py
0 → 100644
View file @
ba20a50a
# standard library imports
from
__future__
import
absolute_import
,
print_function
# core django imports
from
django.test
import
Client
from
django.test
import
TestCase
from
django.core.urlresolvers
import
reverse
class
ListBuildingsTest
(
TestCase
):
# tests that the view does not 404
def
test_list_buildings_ok
(
self
):
# not passing in anything special because it's not login-protected
client
=
Client
()
response
=
client
.
get
(
reverse
(
'list_buildings'
))
self
.
assertEqual
(
response
.
status_code
,
200
)
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