~james-w/vostok/add-series-model

« back to all changes in this revision

Viewing changes to vostok/tests.py

  • Committer: James Westby
  • Date: 2010-06-04 22:25:40 UTC
  • mfrom: (16.1.5 add-distribution-model)
  • Revision ID: james.westby@canonical.com-20100604222540-a7cp66jifv8step1
Merge add-distribution-model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
Base classes for vostok tests.
 
3
"""
 
4
 
 
5
import testtools
 
6
 
 
7
from django.test import TestCase as DjangoTestCase
 
8
 
 
9
 
 
10
class TestCase(DjangoTestCase, testtools.TestCase):
 
11
    """A TestCase that combines the best of Django and testtools.
 
12
 
 
13
    The Django test case class gives you database transaction handling,
 
14
    and various conveniences for testing Django applications. Testtools
 
15
    gives you improved assertion methods, and matchers. We would like to
 
16
    use both.
 
17
 
 
18
    This TestCase inherits from both classes to pull them together.
 
19
 
 
20
    Note that it may be fragile across different versions of the project
 
21
    due to the unconventional way Django uses __call__ to add its behaviour.
 
22
    """
 
23
    pass