Example #1
0
 def _feature(
         self,
         keyword=u'k\xe9yword',
         name=u'name',
         tags=None,
         location=u'location',  # pylint: disable=unused-argument
         description=None,
         scenarios=None,
         background=None):
     if tags is None:
         tags = [u'spam', u'ham']
     if description is None:
         description = [u'description']
     if scenarios is None:
         scenarios = []
     line = self.line
     tags = [Tag(name, line) for name in tags]
     return Feature('<string>',
                    line,
                    keyword,
                    name,
                    tags=tags,
                    description=description,
                    scenarios=scenarios,
                    background=background)
Example #2
0
 def _feature(
         self,
         keyword=u"k\xe9yword",
         name=u"name",
         tags=None,
         location=u"location",  # pylint: disable=unused-argument
         description=None,
         scenarios=None,
         background=None):
     if tags is None:
         tags = [u"spam", u"ham"]
     if description is None:
         description = [u"description"]
     if scenarios is None:
         scenarios = []
     line = self.line
     tags = [Tag(name, line) for name in tags]
     return Feature("<string>",
                    line,
                    keyword,
                    name,
                    tags=tags,
                    description=description,
                    scenarios=scenarios,
                    background=background)
Example #3
0
 def _feature(self, keyword=u'k\xe9yword', name=u'name', tags=[u'spam', u'ham'],
         location=u'location', description=[u'description'], scenarios=[],
         background=None):
     line = self.line
     tags = [Tag(name, line) for name in tags]
     return Feature('<string>', line, keyword, name, tags=tags,
         description=description, scenarios=scenarios,
         background=background)
 def _scenario(self,
               keyword=u'k\xe9yword',
               name=u'name',
               tags=[],
               steps=[]):
     line = self.line
     tags = [Tag(name, line) for name in tags]
     return Scenario('<string>',
                     line,
                     keyword,
                     name,
                     tags=tags,
                     steps=steps)
Example #5
0
 def _scenario(self,
               keyword=u'k\xe9yword',
               name=u'name',
               tags=None,
               steps=None):
     if tags is None:
         tags = []
     if steps is None:
         steps = []
     line = self.line
     tags = [Tag(name, line) for name in tags]
     return Scenario('<string>',
                     line,
                     keyword,
                     name,
                     tags=tags,
                     steps=steps)
Example #6
0
 def _scenario(self,
               keyword=u"k\xe9yword",
               name=u"name",
               tags=None,
               steps=None):
     if tags is None:
         tags = []
     if steps is None:
         steps = []
     line = self.line
     tags = [Tag(name, line) for name in tags]
     return Scenario("<string>",
                     line,
                     keyword,
                     name,
                     tags=tags,
                     steps=steps)
Example #7
0
    def check_make_name(self, tag, expected):
        if expected is self.SAME_AS_TAG:
            expected = tag

        actual_name = Tag.make_name(tag, allowed_chars=Tag.allowed_chars)
        assert actual_name == expected