def test_etag(self):
    'ETag processing.'
    self.headers.append(('etag', '"ca231fbc"'))
    self.client.get('auth/token')
    (method, path, body, headers) = self.mock_c.request.call_args[0]
    assert ('If-None-Match' not in headers)
    assert ('"ca231fbc"' == self.client.etags['/api/v1/auth/token'])
    self.client.get('auth/token')
    (method, path, body, headers) = self.mock_c.request.call_args[0]
    assert ('"ca231fbc"' == headers['If-None-Match'])
ETag processing.
def test_etag(self):
    
    self.headers.append(('etag', '"ca231fbc"'))
    self.client.get('auth/token')
    (method, path, body, headers) = self.mock_c.request.call_args[0]
    assert ('If-None-Match' not in headers)
    assert ('"ca231fbc"' == self.client.etags['/api/v1/auth/token'])
    self.client.get('auth/token')
    (method, path, body, headers) = self.mock_c.request.call_args[0]
    assert ('"ca231fbc"' == headers['If-None-Match'])