

def _outcome(self, offset, line, no_details, details_state):
    'An outcome directive has been read.\n\n        :param no_details: Callable to call when no details are presented.\n        :param details_state: The state to switch to for details\n            processing of this outcome.\n        '
    test_name = line[offset:(- 1)].decode('utf8')
    if (self.parser.current_test_description == test_name):
        self.parser._state = test_name.parser._outside_test
        self.parser.current_test_description = None
        no_details()
        self.parser.client.stopTest(self.parser._current_test)
        self.parser._current_test = None
        self.parser.subunitLineReceived(line)
    elif ((self.parser.current_test_description + self._start_simple) == test_name):
        self.parser._state = details_state
        details_state.set_simple()
        self.parser.subunitLineReceived(line)
    elif ((self.parser.current_test_description + self._start_multipart) == test_name):
        self.parser._state = details_state
        details_state.set_multipart()
        self.parser.subunitLineReceived(line)
    else:
        self.parser.stdOutLineReceived(line)

dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/external/subunit/__init__.py _InTest._outcome/VarMisuse@56/156 `self`->`test_name`