Lines Matching refs:safe_repr
15 from .util import (strclass, safe_repr, _count_diff_all_purpose,
675 msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr))
681 msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr))
703 return '%s : %s' % (safe_repr(standardMsg), safe_repr(msg))
838 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first),
839 safe_repr(second)))
868 safe_repr(first),
869 safe_repr(second),
870 safe_repr(delta),
871 safe_repr(diff))
880 safe_repr(first),
881 safe_repr(second),
883 safe_repr(diff))
906 safe_repr(first),
907 safe_repr(second),
908 safe_repr(delta),
909 safe_repr(diff))
915 standardMsg = '%s == %s within %r places' % (safe_repr(first),
916 safe_repr(second),
940 % (seq_type_name, safe_repr(seq1)))
943 % (seq_type_name, safe_repr(seq2)))
999 (len2, safe_repr(seq1[len2])))
1008 (len1, safe_repr(seq2[len1])))
1096 standardMsg = '%s not found in %s' % (safe_repr(member),
1097 safe_repr(container))
1103 standardMsg = '%s unexpectedly found in %s' % (safe_repr(member),
1104 safe_repr(container))
1110 standardMsg = '%s is not %s' % (safe_repr(expr1),
1111 safe_repr(expr2))
1117 standardMsg = 'unexpectedly identical: %s' % (safe_repr(expr1),)
1143 (safe_repr(key), safe_repr(value),
1144 safe_repr(dictionary[key])))
1151 standardMsg = 'Missing: %s' % ','.join(safe_repr(m) for m in
1216 standardMsg = '%s not less than %s' % (safe_repr(a), safe_repr(b))
1222 standardMsg = '%s not less than or equal to %s' % (safe_repr(a), safe_repr(b))
1228 standardMsg = '%s not greater than %s' % (safe_repr(a), safe_repr(b))
1234 standardMsg = '%s not greater than or equal to %s' % (safe_repr(a), safe_repr(b))
1240 standardMsg = '%s is not None' % (safe_repr(obj),)
1253 standardMsg = '%s is not an instance of %r' % (safe_repr(obj), cls)
1259 standardMsg = '%s is an instance of %r' % (safe_repr(obj), cls)