Beispiel #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
Beispiel #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
Beispiel #3
0
 def _repr_argspec(self):
     return self._make_argspec(", ".join(sorted(fmt_dict_vals(self.attributes))))
Beispiel #4
0
 def _repr_argspec(self):
     return self._make_argspec(", ".join(
         sorted(fmt_dict_vals(self.attributes))))