def test_bad_document_type(): document = "not a dict" assert_document_error( document, None, None, errors.DOCUMENT_FORMAT.format( document) )
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)
def test_empty_document(): assert_document_error(None, sample_schema, None, errors.DOCUMENT_MISSING)