def METHOD_NAME():
    input_json = {'network': 'foo', 'klass': 'jcdecaux', 'args': {'user': 'a'}}
    def check(resp):
        assert resp['network'] == input_json['network']
        assert resp['klass'] == input_json['klass']
        assert resp['args'] == input_json['args']
        assert resp['discarded'] == False
    _, status = api_post(
        'v0/bss_providers/', data=json.dumps(input_json), content_type='application/json', check=False
    )
    assert status == 400
    resp, status = api_post(
        'v0/bss_providers/foo', data=json.dumps(input_json), content_type='application/json', check=False
    )
    assert status == 201
    check(resp)
    resp = api_get('v0/bss_providers/foo')
    assert 'bss_providers' in resp
    assert len(resp['bss_providers']) == 1
    check(resp['bss_providers'][0])