diff --git a/tests/modeltests/proxy_model_inheritance/tests.py b/tests/modeltests/proxy_model_inheritance/tests.py
index 546c507..813cfd2 100644
a
|
b
|
class ProxyModelInheritanceTests(TransactionTestCase):
|
22 | 22 | self.old_installed_apps = settings.INSTALLED_APPS |
23 | 23 | settings.INSTALLED_APPS = ('app1', 'app2') |
24 | 24 | map(load_app, settings.INSTALLED_APPS) |
25 | | call_command('syncdb', verbosity=0) |
26 | | global ProxyModel, NiceModel |
27 | | from app1.models import ProxyModel |
28 | | from app2.models import NiceModel |
29 | 25 | |
30 | 26 | def tearDown(self): |
31 | 27 | settings.INSTALLED_APPS = self.old_installed_apps |
32 | 28 | sys.path = self.old_sys_path |
33 | 29 | |
34 | 30 | def test_table_exists(self): |
| 31 | call_command('syncdb', verbosity=0) |
| 32 | global ProxyModel, NiceModel |
| 33 | from app1.models import ProxyModel |
| 34 | from app2.models import NiceModel |
35 | 35 | self.assertEqual(NiceModel.objects.all().count(), 0) |
36 | 36 | self.assertEqual(ProxyModel.objects.all().count(), 0) |