def test_session(self):
    client = RequestsClient()
    response = client.get('http://testserver/session/')
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {}
    assert (response.json() == expected)
    response = client.post('http://testserver/session/', json={'example': 'abc'})
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'example': 'abc'}
    assert (response.json() == expected)
    response = client.get('http://testserver/session/')
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'example': 'abc'}
    assert (response.json() == expected)
def test_session(self):
    client = RequestsClient()
    response = client.get('http://testserver/session/')
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {}
    assert (response.json() == expected)
    response = client.post('http://testserver/session/', json={'example': 'abc'})
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'example': 'abc'}
    assert (response.json() == expected)
    response = client.get('http://testserver/session/')
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'example': 'abc'}
    assert (response.json() == expected)