Skip to content

Commit b42195f

Browse files
author
Roland Hedberg
committed
Fixed imports
1 parent 926d334 commit b42195f

10 files changed

+15
-19
lines changed

tests/test_13_validate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
# -*- coding: utf-8 -*-
33

44
import saml2
5-
import xmldsig as ds
65

76
from saml2 import saml
87
from saml2 import samlp
9-
from saml2 import md
108
from saml2.validate import valid_duration, MustValueError
119
from saml2.validate import valid_unsigned_short
1210
from saml2.validate import valid_non_negative_integer

tests/test_20_assertion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
from saml2.extension import mdattr
2727
from saml2.extension import ui
2828
from saml2 import saml
29-
import xmldsig
30-
import xmlenc
29+
from saml2 import xmldsig
30+
from saml2 import xmlenc
3131

3232
from pathutils import full_path
3333

tests/test_22_mdie.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from saml2.extension import dri
1111
from saml2.extension import mdattr
1212
from saml2.extension import ui
13-
import xmldsig
14-
import xmlenc
13+
from saml2 import xmldsig
14+
from saml2 import xmlenc
1515

1616
ONTS = {
1717
saml.NAMESPACE: saml,

tests/test_30_mdstore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
from saml2.extension import mdattr
2727
from saml2.extension import ui
2828
from saml2.s_utils import UnknownPrincipal
29-
import xmldsig
30-
import xmlenc
29+
from saml2 import xmldsig
30+
from saml2 import xmlenc
3131

3232
from pathutils import full_path
3333

tests/test_30_mdstore_old.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# -*- coding: utf-8 -*-
33
import datetime
44
import re
5-
from urllib import quote_plus
6-
from saml2.httpbase import HTTPBase
75

86
from saml2.mdstore import MetadataStore, MetaDataMDX
97
from saml2.mdstore import destinations
@@ -26,8 +24,8 @@
2624
from saml2.extension import mdattr
2725
from saml2.extension import ui
2826
from saml2.s_utils import UnknownPrincipal
29-
import xmldsig
30-
import xmlenc
27+
from saml2 import xmldsig
28+
from saml2 import xmlenc
3129

3230
from pathutils import full_path
3331

tests/test_37_entity_categories.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
from pathutils import full_path
1313
from saml2.mdstore import MetadataStore
1414
from saml2.server import Server
15-
import xmldsig
16-
import xmlenc
15+
from saml2 import xmldsig
16+
from saml2 import xmlenc
1717

1818
ONTS = {
1919
saml.NAMESPACE: saml,

tests/test_51_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import base64
55
import urllib
66
import urlparse
7-
from xmldsig import SIG_RSA_SHA256
7+
from saml2.xmldsig import SIG_RSA_SHA256
88
from saml2 import BINDING_HTTP_POST
99
from saml2 import BINDING_HTTP_REDIRECT
1010
from saml2 import config

tests/test_60_sp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from saml2.authn_context import INTERNETPROTOCOLPASSWORD
66
from saml2.saml import NAMEID_FORMAT_TRANSIENT
77
from saml2.samlp import NameIDPolicy
8-
from s2repoze.plugins.sp import make_plugin
8+
from saml2.s2repoze.plugins.sp import make_plugin
99
from saml2.server import Server
1010

1111
ENV1 = {'SERVER_SOFTWARE': 'CherryPy/3.1.2 WSGI Server',

tests/test_76_metadata_in_mdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
from saml2.extension import dri
2121
from saml2.extension import mdattr
2222
from saml2.extension import ui
23-
import xmldsig
24-
import xmlenc
23+
from saml2 import xmldsig
24+
from saml2 import xmlenc
2525

2626
from pathutils import full_path
2727

tests/test_82_pefim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import xmldsig as ds
1+
from saml2 import xmldsig as ds
22
from saml2 import config
33
from saml2 import extension_elements_to_elements
44
from saml2 import element_to_extension_element

0 commit comments

Comments
 (0)