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