Esempio n. 1
0
def test_certificate_edit_schema(session):
    from lemur.certificates.schemas import CertificateEditInputSchema

    input_data = {"owner": "*****@*****.**"}
    data, errors = CertificateEditInputSchema().load(input_data)

    assert not errors
    assert len(data["notifications"]) == 3
    assert data["roles"][0].name == input_data["owner"]
Esempio n. 2
0
def test_certificate_edit_schema(session):
    from lemur.certificates.schemas import CertificateEditInputSchema

    input_data = {'owner': '*****@*****.**'}
    data, errors = CertificateEditInputSchema().load(input_data)
    assert len(data['notifications']) == 3