Lines Matching refs:assertIs
21 self.assertIs(manager.__enter__(), manager)
138 self.assertIs(ex, stop_exc)
159 self.assertIs(ex, stop_exc)
174 self.assertIs(type(ex), RuntimeError)
182 self.assertIs(type(ex), StopIteration)
309 self.assertIs(c_in, c)
407 self.assertIs(result, context)
420 self.assertIs(context.exc[0], NameError)
427 self.assertIs(context.exc[0], NameError)
453 self.assertIs(context.exc[0], NameError)
593 self.assertIs(f, _exit)
595 self.assertIs(wrapper[1].__wrapped__, _exit)
613 self.assertIs(exc_type, exc_raised)
629 self.assertIs(stack._exit_callbacks[-1][1], _expect_ok)
632 self.assertIs(stack._exit_callbacks[-1][1].__self__, cm)
634 self.assertIs(stack._exit_callbacks[-1][1], _suppress_exc)
637 self.assertIs(stack._exit_callbacks[-1][1].__self__, cm)
639 self.assertIs(stack._exit_callbacks[-1][1], _expect_exc)
641 self.assertIs(stack._exit_callbacks[-1][1], _expect_exc)
659 self.assertIs(stack._exit_callbacks[-1][1].__self__, cm)
828 self.assertIs(exc, exc4)
829 self.assertIs(exc.__context__, exc3)
830 self.assertIs(exc.__context__.__context__, exc2)
831 self.assertIs(exc.__context__.__context__.__context__, exc1)
854 self.assertIs(exc, exc5)
855 self.assertIs(exc.__context__, exc4)
856 self.assertIs(exc.__context__.__context__, exc3)
857 self.assertIs(exc.__context__.__context__.__context__, exc2)
858 self.assertIs(
892 self.assertIs(stack._exit_callbacks[-1][1], cm)
926 self.assertIs(exc.__cause__, exc.__context__)
948 self.assertIs(getattr(sys, self.orig_stream), orig_stdout)
956 self.assertIs(getattr(sys, self.orig_stream), orig_stdout)
963 self.assertIs(enter_result, f)
973 self.assertIs(getattr(sys, self.orig_stream), orig_stdout)
985 self.assertIs(getattr(sys, self.orig_stream), orig_stdout)