def test_bad_document_type():
    document = "not a dict"
    assert_document_error(
        document, None, None, errors.DOCUMENT_FORMAT.format(
            document)
    )
Exemple #2
0
def test_bad_document_type():
    document = "not a dict"
    assert_document_error(
        document, sample_schema, None, errors.DOCUMENT_FORMAT.format(document)
    )
def test_empty_document():
    assert_document_error(None, None, None,
                          errors.DOCUMENT_MISSING)
Exemple #4
0
def test_empty_document():
    assert_document_error(None, sample_schema, None, errors.DOCUMENT_MISSING)