def METHOD_NAME(testrepo):
    with pytest.raises(TypeError):
        testrepo.create_blob_fromiobase('bad type')
    f = io.BytesIO(BLOB_CONTENT)
    blob_oid = testrepo.create_blob_fromiobase(f)
    blob = testrepo[blob_oid]
    assert isinstance(blob, pygit2.Blob)
    assert pygit2.GIT_OBJ_BLOB == blob.type
    assert blob_oid == blob.id
    assert BLOB_SHA == blob_oid.hex