(t *testing.T)
| 449 | } |
| 450 | |
| 451 | func TestScopingElementMinimal(t *testing.T) { |
| 452 | s := Scoping{IDPList: &IDPList{IDPEntries: []IDPEntry{{ProviderID: "https://idp.example.com"}}}} |
| 453 | doc := etree.NewDocument() |
| 454 | doc.SetRoot(s.Element()) |
| 455 | x, err := doc.WriteToBytes() |
| 456 | assert.Check(t, err) |
| 457 | assert.Check(t, is.Equal(`<samlp:Scoping><samlp:IDPList><samlp:IDPEntry ProviderID="https://idp.example.com"/></samlp:IDPList></samlp:Scoping>`, string(x))) |
| 458 | } |