def METHOD_NAME(self):
    name = unique_tsigkey_name()
    payload = {
        'algorithm': 'hmac-sha512'
    }
    r = self.session.put(self.url("/api/v1/servers/localhost/tsigkeys/" + name + '.'),
                         data=json.dumps(payload),
                         headers={'accept': 'application/json'})
    self.assertEqual(r.status_code, 404)
    data = r.json()
    self.assertIn('TSIG key with name \'' + name + '\' not found', data['error'])