Example #1
0
 def _repr_call(self, expected_args, expected_kwargs, shorten_long_vals=True):
     args = []
     if expected_args:
         args.extend([fmt_val(a, shorten=shorten_long_vals) for a in expected_args])
     if expected_kwargs:
         args.extend(fmt_dict_vals(expected_kwargs, shorten=shorten_long_vals))
     if args:
         call = "(%s)" % ", ".join(args)
     else:
         call = "()"
     return call
Example #2
0
 def _repr_call(self, expected_args, expected_kwargs, shorten_long_vals=True):
     args = []
     if expected_args:
         args.extend([fmt_val(a, shorten=shorten_long_vals) for a in expected_args])
     if expected_kwargs:
         args.extend(fmt_dict_vals(expected_kwargs, shorten=shorten_long_vals))
     if args:
         call = "(%s)" % ", ".join(args)
     else:
         call = "()"
     return call
Example #3
0
 def _repr_argspec(self):
     return self._make_argspec(fmt_val(self.part))
Example #4
0
 def _repr_argspec(self):
     return self._make_argspec(fmt_val(self.part))