create _tests subdir, py.test based example test module

This commit is contained in:
Thomas Waldmann 2013-09-28 11:27:22 +02:00
parent 10a5fe613f
commit fc9bff7bc5
2 changed files with 11 additions and 16 deletions

View File

@ -0,0 +1,11 @@
"""
Tests for xxx module.
"""
class Tests(object):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
assert 1 + 1 == 2

View File

@ -1,16 +0,0 @@
"""
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
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)