Lines Matching refs:assertIs
22 self.assertIs(manager.__enter__(), manager)
139 self.assertIs(ex, stop_exc)
160 self.assertIs(ex, stop_exc)
175 self.assertIs(type(ex), RuntimeError)
183 self.assertIs(type(ex), StopIteration)
310 self.assertIs(c_in, c)
408 self.assertIs(result, context)
421 self.assertIs(context.exc[0], NameError)
428 self.assertIs(context.exc[0], NameError)
454 self.assertIs(context.exc[0], NameError)
593 self.assertIs(f, _exit)
595 self.assertIs(wrapper[1].__wrapped__, _exit)
603 self.assertIs(exc_type, exc_raised)
619 self.assertIs(stack._exit_callbacks[-1][1], _expect_ok)
622 self.assertIs(stack._exit_callbacks[-1][1].__self__, cm)
624 self.assertIs(stack._exit_callbacks[-1][1], _suppress_exc)
627 self.assertIs(stack._exit_callbacks[-1][1].__self__, cm)
629 self.assertIs(stack._exit_callbacks[-1][1], _expect_exc)
631 self.assertIs(stack._exit_callbacks[-1][1], _expect_exc)
649 self.assertIs(stack._exit_callbacks[-1][1].__self__, cm)
818 self.assertIs(exc, exc4)
819 self.assertIs(exc.__context__, exc3)
820 self.assertIs(exc.__context__.__context__, exc2)
821 self.assertIs(exc.__context__.__context__.__context__, exc1)
844 self.assertIs(exc, exc5)
845 self.assertIs(exc.__context__, exc4)
846 self.assertIs(exc.__context__.__context__, exc3)
847 self.assertIs(exc.__context__.__context__.__context__, exc2)
848 self.assertIs(
882 self.assertIs(stack._exit_callbacks[-1][1], cm)
916 self.assertIs(exc.__cause__, exc.__context__)
938 self.assertIs(getattr(sys, self.orig_stream), orig_stdout)
946 self.assertIs(getattr(sys, self.orig_stream), orig_stdout)
953 self.assertIs(enter_result, f)
963 self.assertIs(getattr(sys, self.orig_stream), orig_stdout)
975 self.assertIs(getattr(sys, self.orig_stream), orig_stdout)