

def test_POST_to_secret_endpoint_with_no_content_should_500():
    reload(draftin_a_flask)
    test_client = draftin_a_flask.app.test_client()
    data = {
        'id': 12345,
        'name': 'Some document',
        'content_html': 'Some html',
        'user': {
            'id': 42,
            'email': 'fnord@fnord',
        },
        'created_at': '2013-05-23T14:11:54-05:00',
        'updated_at': '2013-05-23T14:11:58-05:00',
    }
    rv = test_client.post(draftin_a_flask.app.secret_key, data=json.dumps(data), content_type='application/json')
    assert (rv.status_code == 500)

dataset/ETHPy150Open waynew/draftin-a-flask/tests/test_draftin_a_flask.py test_POST_to_secret_endpoint_with_no_content_should_500/original