File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,15 @@ def test_loadd(self):
43
43
print (ava )
44
44
ee = saml2 .ExtensionElement ("" )
45
45
46
- raises (KeyError , "ee.loadd(ava)" )
46
+ with raises (KeyError ):
47
+ ee .loadd (ava )
47
48
48
49
ava ["tag" ] = "foo"
49
50
del ava ["namespace" ]
50
51
51
52
ee = saml2 .ExtensionElement ("" )
52
- raises (KeyError , "ee.loadd(ava)" )
53
+ with raises (KeyError ):
54
+ ee .loadd (ava )
53
55
54
56
def test_find_children (self ):
55
57
ava = {
@@ -211,8 +213,8 @@ def test_make_vals_str(self):
211
213
def test_make_vals_multi_dict (self ):
212
214
ava = ["foo" , "bar" , "lions" , "saints" ]
213
215
214
- raises (Exception ,
215
- " saml2.make_vals(ava, AttributeValue, Attribute(), part=True)" )
216
+ with raises (Exception ):
217
+ saml2 .make_vals (ava , AttributeValue , Attribute (), part = True )
216
218
217
219
attr = Attribute ()
218
220
saml2 .make_vals (ava , AttributeValue , attr , prop = "attribute_value" )
@@ -654,7 +656,7 @@ def testUsingTestData(self):
654
656
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
655
657
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
656
658
Name="FirstName">
657
- <AttributeValue
659
+ <AttributeValue
658
660
xsi:type="xs:base64Binary">VU5JTkVUVA==</AttributeValue>
659
661
</Attribute>"""
660
662
You can’t perform that action at this time.
0 commit comments