TestAppNestedTests.test_registration()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
1
from django.core.exceptions import ImproperlyConfigured
2
3
from actstream.registry import register, registry
4
from actstream.tests.base import ActivityBaseTestCase
5
6
from testapp_nested.models import my_model
7
8
9
class TestAppNestedTests(ActivityBaseTestCase):
10
11
    def test_registration(self):
12
        self.assertIn(my_model.NestedModel, registry)
13
14
    def test_not_installed(self):
15
        from notinstalled.models import NotInstalledModel
16
        self.assertRaises(ImproperlyConfigured, register, NotInstalledModel)
17