def METHOD_NAME(test_client, db_session, auth_headers):
    mine, permit = create_mine_and_permit()
    party_guid = PartyFactory(company=True).party_guid
    data = {
        'mine_guid': str(mine.mine_guid),
        'party_guid': str(party_guid),
        'mine_party_appt_type_code': 'PMT',
        'effective_date': datetime.today().strftime("%Y-%m-%d")
    }
    post_resp = test_client.post(
        '/parties/mines', data=data, headers=auth_headers['full_auth_header'])
    post_data = json.loads(post_resp.data.decode())
    assert post_resp.status_code == 404, str(post_resp.response)
    assert post_data['message']