def METHOD_NAME(self, test_client, db_session, auth_headers, setup_info):
    """Returns 400 if mine document isn't attached to mine"""
    mine = setup_info['mine']
    document = setup_info['document']
    document.is_archived = True
    document.save(commit=True)
    post_resp = test_client.post(
        f'/mines/{mine.mine_guid}/documents/{document.mine_document_guid}/versions/upload',
        headers=auth_headers['full_auth_header']
    )
    post_data = json.loads(post_resp.data.decode())
    assert post_resp.status_code == 400
    assert post_data['message'] == '400 Bad Request: Cannot create new version of archived document'