Home
last modified time | relevance | path

Searched refs:_formatMessage (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Lib/unittest/
Dcase.py415 msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr))
421 msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr))
424 def _formatMessage(self, msg, standardMsg): member in TestCase
505 msg = self._formatMessage(msg, standardMsg)
520 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first),
561 msg = self._formatMessage(msg, standardMsg)
592 msg = self._formatMessage(msg, standardMsg)
724 msg = self._formatMessage(msg, standardMsg)
797 self.fail(self._formatMessage(msg, standardMsg))
804 self.fail(self._formatMessage(msg, standardMsg))
[all …]
/external/python/cpython3/Lib/unittest/
Dcase.py134 msg = self.test_case._formatMessage(self.msg, standardMsg)
685 msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr))
691 msg = self._formatMessage(msg, "%s is not true" % safe_repr(expr))
694 def _formatMessage(self, msg, standardMsg): member in TestCase
831 msg = self._formatMessage(msg, standardMsg)
846 msg = self._formatMessage(msg, '%s == %s' % (safe_repr(first),
892 msg = self._formatMessage(msg, standardMsg)
927 msg = self._formatMessage(msg, standardMsg)
1026 msg = self._formatMessage(msg, standardMsg)
1099 self.fail(self._formatMessage(msg, standardMsg))
[all …]
/external/python/cpython2/Lib/unittest/test/
Dtest_assertions.py136 self.assertEqual(self.testableFalse._formatMessage(None, "foo"), "foo")
137 self.assertEqual(self.testableFalse._formatMessage("foo", "bar"), "foo")
139 self.assertEqual(self.testableTrue._formatMessage(None, "foo"), "foo")
140 self.assertEqual(self.testableTrue._formatMessage("foo", "bar"), "bar : foo")
143 self.testableTrue._formatMessage(object(), 'foo')
148 self.testableTrue._formatMessage(one, u'\uFFFD')
/external/python/cpython3/Lib/unittest/test/
Dtest_assertions.py168 self.assertEqual(self.testableFalse._formatMessage(None, "foo"), "foo")
169 self.assertEqual(self.testableFalse._formatMessage("foo", "bar"), "foo")
171 self.assertEqual(self.testableTrue._formatMessage(None, "foo"), "foo")
172 self.assertEqual(self.testableTrue._formatMessage("foo", "bar"), "bar : foo")
175 self.testableTrue._formatMessage(object(), 'foo')
180 self.testableTrue._formatMessage(one, '\uFFFD')
/external/python/cpython3/Lib/test/
Dtest_statistics.py236 msg = self._formatMessage(msg, standardMsg)
247 msg = self._formatMessage(msg, standardMsg)