Lines Matching refs:safe_repr
15 from .util import (strclass, safe_repr, _count_diff_all_purpose,
685 msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr))
691 msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr))
713 return '%s : %s' % (safe_repr(standardMsg), safe_repr(msg))
846 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first),
847 safe_repr(second)))
876 safe_repr(first),
877 safe_repr(second),
878 safe_repr(delta),
879 safe_repr(diff))
888 safe_repr(first),
889 safe_repr(second),
891 safe_repr(diff))
914 safe_repr(first),
915 safe_repr(second),
916 safe_repr(delta),
917 safe_repr(diff))
923 standardMsg = '%s == %s within %r places' % (safe_repr(first),
924 safe_repr(second),
948 % (seq_type_name, safe_repr(seq1)))
951 % (seq_type_name, safe_repr(seq2)))
1007 (len2, safe_repr(seq1[len2])))
1016 (len1, safe_repr(seq2[len1])))
1104 standardMsg = '%s not found in %s' % (safe_repr(member),
1105 safe_repr(container))
1111 standardMsg = '%s unexpectedly found in %s' % (safe_repr(member),
1112 safe_repr(container))
1118 standardMsg = '%s is not %s' % (safe_repr(expr1),
1119 safe_repr(expr2))
1125 standardMsg = 'unexpectedly identical: %s' % (safe_repr(expr1),)
1151 (safe_repr(key), safe_repr(value),
1152 safe_repr(dictionary[key])))
1159 standardMsg = 'Missing: %s' % ','.join(safe_repr(m) for m in
1225 standardMsg = '%s not less than %s' % (safe_repr(a), safe_repr(b))
1231 standardMsg = '%s not less than or equal to %s' % (safe_repr(a), safe_repr(b))
1237 standardMsg = '%s not greater than %s' % (safe_repr(a), safe_repr(b))
1243 standardMsg = '%s not greater than or equal to %s' % (safe_repr(a), safe_repr(b))
1249 standardMsg = '%s is not None' % (safe_repr(obj),)
1262 standardMsg = '%s is not an instance of %r' % (safe_repr(obj), cls)
1268 standardMsg = '%s is an instance of %r' % (safe_repr(obj), cls)