def print_info(self): LOG.info( "Running [scenario]%s[/] > [action]%s[/]", self._config.scenario.name, util.underscore(self.__class__.__name__), extra={"markup": True}, )
def print_info(self): msg = "Scenario: '{}'".format(self._config.scenario.name) LOG.info(msg) msg = "Action: '{}'".format(util.underscore(self.__class__.__name__)) LOG.info(msg)
def test_underscore(): assert "foo" == util.underscore("Foo") assert "foo_bar" == util.underscore("FooBar") assert "foo_bar_baz" == util.underscore("FooBarBaz")
def test_underscore(): assert 'foo' == util.underscore('Foo') assert 'foo_bar' == util.underscore('FooBar') assert 'foo_bar_baz' == util.underscore('FooBarBaz')