def setUp(self): self.parser = dls_logs_since_release.make_parser()
def setUp(self): self.parser = dls_logs_since_release.make_parser() parse_error_patch = patch( 'dls_ade.dls_logs_since_release.ArgParser.error') self.addCleanup(parse_error_patch.stop) self.mock_error = parse_error_patch.start()
def test_module_name_set(self, parser_mock): dls_logs_since_release.make_parser() parser_mock.assert_called_once_with()
def setUp(self): self.parser = dls_logs_since_release.make_parser() parse_error_patch = patch('dls_ade.dls_logs_since_release.ArgParser.error') self.addCleanup(parse_error_patch.stop) self.mock_error = parse_error_patch.start()