Lines Matching refs:ret
53 ret = []
64 ret.append(line)
65 return ''.join(ret)
106 ret = list(self.replacer.vars())
107 self.assertGreater(len(ret), 4)
108 self.assertIn('PREUPLOAD_COMMIT', ret)
217 ret = rh.hooks._run_command(['true'])
218 self.assertEqual(ret.returncode, 0)
224 ret = rh.hooks._get_build_os_name()
225 self.assertTrue(isinstance(ret, str))
226 self.assertNotEqual(ret, '')
231 ret = rh.hooks.get_helper_path('booga')
232 self.assertTrue(isinstance(ret, str))
233 self.assertNotEqual(ret, '')
256 ret = func(self.project, 'commit', desc, (), options=self.options)
259 ret, None, msg='Should have accepted: {{{%s}}}' % (desc,))
262 ret, None, msg='Should have rejected: {{{%s}}}' % (desc,))
273 ret = func(self.project, 'commit', 'desc', (), options=self.options)
274 self.assertEqual(ret, None)
279 ret = func(self.project, 'commit', 'desc', diff, options=self.options)
280 self.assertEqual(ret, mock_check.return_value)
290 ret = rh.hooks.check_checkpatch(
292 self.assertEqual(ret, mock_check.return_value)
296 ret = rh.hooks.check_clang_format(
298 self.assertEqual(ret, mock_check.return_value)
302 ret = rh.hooks.check_google_java_format(
304 self.assertEqual(ret, mock_check.return_value)
363 ret = rh.hooks.check_gofmt(
365 self.assertEqual(ret, None)
370 ret = rh.hooks.check_gofmt(
372 self.assertNotEqual(ret, None)
377 ret = rh.hooks.check_json(
379 self.assertEqual(ret, None)