test_models.py 384 Bytes
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1
2

import logging
3

Lukas Burgey's avatar
Lukas Burgey committed
4
5
6
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase

7
from feudal.backend.models.auth import default_idp
Lukas Burgey's avatar
Lukas Burgey committed
8
9
10
11
12
13
14
15
16

LOGGER = logging.getLogger(__name__)

class AuthModelsTest(TestCase):

    # without setup there is no OIDConfig
    def test_default_idp(self):
        with self.assertRaises(ImproperlyConfigured):
            default_idp()