Home | History | Annotate | Download | only in unittest

Lines Matching full:none

23                  'Set self.maxDiff to None to see it.')
101 def __init__(self, expected, test_case, expected_regexp=None):
110 if exc_type is None:
121 if self.expected_regexp is None:
186 self._resultForDoCleanups = None
256 """Returns a one-line description of the test, or None if no
263 return doc and doc.split("\n")[0].strip() or None
289 addSkip = getattr(result, 'addSkip', None)
290 if addSkip is not None:
297 def run(self, result=None):
299 if result is None:
301 startTestRun = getattr(result, 'startTestRun', None)
302 if startTestRun is not None:
337 addExpectedFailure = getattr(result, 'addExpectedFailure', None)
338 if addExpectedFailure is not None:
345 addUnexpectedSuccess = getattr(result, 'addUnexpectedSuccess', None)
346 if addUnexpectedSuccess is not None:
373 if orig_result is None:
374 stopTestRun = getattr(result, 'stopTestRun', None)
375 if stopTestRun is not None:
410 def fail(self, msg=None):
414 def assertFalse(self, expr, msg=None):
420 def assertTrue(self, expr, msg=None):
438 if msg is None:
448 def assertRaises(self, excClass, callableObj=None, *args, **kwargs):
456 If called with callableObj omitted or None, will return a
472 if callableObj is None:
480 Returns: A callable accepting (first, second, msg=None) that will
496 if asserter is not None:
503 def _baseAssertEqual(self, first, second, msg=None):
510 def assertEqual(self, first, second, msg=None):
517 def assertNotEqual(self, first, second, msg=None):
527 def assertAlmostEqual(self, first, second, places=None, msg=None, delta=None):
542 if delta is not None and places is not None:
545 if delta is not None:
553 if places is None:
565 def assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None):
576 if delta is not None and places is not None:
578 if delta is not None:
585 if places is None:
625 def assertSequenceEqual(self, seq1, seq2, msg=None, seq_type=None):
634 seq_type: The expected datatype of the sequences, or None if no
639 if seq_type is not None:
650 differing = None
657 if differing is None:
664 if differing is None:
697 if (len1 == len2 and seq_type is None and
730 if max_diff is None or len(diff) <= max_diff:
734 def assertListEqual(self, list1, list2, msg=None):
746 def assertTupleEqual(self, tuple1, tuple2, msg=None):
757 def assertSetEqual(self, set1, set2, msg=None):
800 def assertIn(self, member, container, msg=None):
807 def assertNotIn(self, member, container, msg=None):
814 def assertIs(self, expr1, expr2, msg=None):
821 def assertIsNot(self, expr1, expr2, msg=None):
827 def assertDictEqual(self, d1, d2, msg=None):
839 def assertDictContainsSubset(self, expected, actual, msg=None):
865 def assertItemsEqual(self, expected_seq, actual_seq, msg=None):
905 def assertMultiLineEqual(self, first, second, msg=None):
928 def assertLess(self, a, b, msg=None):
934 def assertLessEqual(self, a, b, msg=None):
940 def assertGreater(self, a, b, msg=None):
946 def assertGreaterEqual(self, a, b, msg=None):
952 def assertIsNone(self, obj, msg=None):
953 """Same as self.assertTrue(obj is None), with a nicer default message."""
954 if obj is not None:
955 standardMsg = '%s is not None' % (safe_repr(obj),)
958 def assertIsNotNone(self, obj, msg=None):
960 if obj is None:
961 standardMsg = 'unexpectedly None'
964 def assertIsInstance(self, obj, cls, msg=None):
971 def assertNotIsInstance(self, obj, cls, msg=None):
978 callable_obj=None, *args, **kwargs):
990 if callable_obj is None:
995 def assertRegexpMatches(self, text, expected_regexp, msg=None):
1004 def assertNotRegexpMatches(self, text, unexpected_regexp, msg=None):
1027 def __init__(self, testFunc, setUp=None, tearDown=None, description=None):
1035 if self._setUpFunc is not None:
1039 if self._tearDownFunc is not None:
1073 if self._description is not None:
1076 return doc and doc.split("\n")[0].strip() or None