Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b7f905d1
authored
Mar 07, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: test for the index
parent
7cca7dbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
one/tests.py
+5
-14
No files found.
one/tests.py
View file @
b7f905d1
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from
django.test
import
TestCase
from
django.test
import
TestCase
class
ViewsTestCase
(
TestCase
):
class
SimpleTest
(
TestCase
):
def
test_index
(
self
):
def
test_basic_addition
(
self
):
'''Test whether index is reachable.'''
"""
resp
=
self
.
client
.
get
(
'/'
,
follow
=
True
)
Tests that 1 + 1 always equals 2.
self
.
assertEqual
(
resp
.
status_code
,
200
)
"""
self
.
assertEqual
(
1
+
1
,
2
)
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