summaryrefslogtreecommitdiffstats
path: root/django/sp_sso/saml/tests.py
blob: e94c8ec8ee0ddbab2dd64ebea1eab7c22b8757ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from django.test import TestCase
from .utils import ldap_init, wcs

import requests

# Create your tests here.
class ServicesTestCase(TestCase):
    def test_ldap_connection(self):
        l = ldap_init()
        self.assertTrue(l)

    def test_wcs_connection(self):
        response = requests.get(wcs)
        self.assertEqual(response.status_code, 200)

    def test_passerelle_connection(self):
        response = requests.get('http://dir-condorcet.dev.entrouvert.org')
        self.assertEqual(response.status_code, 200)

    def test_authentic_connection(self):
        response = requests.get('http://idp-condorcet.dev.entrouvert.org')
        self.assertEqual(response.status_code, 200)