def test_StepDict_can_extract_a_step_sentence_from_function_name(): """ aloe.STEP_REGISTRY.extract_sentence(func) parse func name and return a sentence """ steps = StepDict() def a_step_sentence(): # pylint:disable=missing-docstring pass assert_equal("A step sentence", steps.extract_sentence(a_step_sentence))
def test_StepDict_can_extract_a_step_sentence_from_function_doc(): """ aloe.STEP_REGISTRY.extract_sentence(func) parse func doc and return a sentence """ steps = StepDict() def a_step_func(): """A step sentence""" pass assert_equal("A step sentence", steps.extract_sentence(a_step_func))