code: def assert_errors(self, client, url, data, *errors):
      out = client.post_json(url, data, status=400)
      assert "message" in out
      assert "errors" in out
      for error in errors:
          assert error in out["errors"]
  
imports: from __future__ import unicode_literals
  import flask_restplus
label_desc: Use image node_id 1 for calling the PayloadTest obj's underlying member method code with example usage: obj.assert_errors(client, url, data) without return types