def test_node_template_requirements_with_wrong_relationship_keyname(self):
        tpl_snippet = '''
        node_templates:
          mysql_database:
            type: tosca.nodes.Database
            requirements:
              - host:
                  node: mysql_dbms
              - log_endpoint:
                  node: logstash
                  capability: log_endpoint
                  relationshipppp:
                    type: tosca.relationships.ConnectsTo

        '''
        expectedmessage = _('"requirements" of template "mysql_database" '
                            'contains unknown field "relationshipppp". Refer '
                            'to the definition to verify valid values.')
        err = self.assertRaises(
            exception.UnknownFieldError,
            lambda: self._single_node_template_content_test(tpl_snippet))
        self.assertEqual(expectedmessage, err.__str__())
Incorrect node template requirements keyname
dataset/ETHPy150Open openstack/tosca-parser/toscaparser/tests/test_toscatplvalidation.py/ToscaTemplateValidationTest.test_node_template_requirements_with_wrong_relationship_keyname