Lines Matching refs:assertNotIsInstance
133 self.assertNotIsInstance(Something(), Mock)
1939 self.assertNotIsInstance(None, Callable)
1950 self.assertNotIsInstance(None, Callable[[], None])
1952 self.assertNotIsInstance(None, Callable[[], Any])
2421 self.assertNotIsInstance(C(), P)
2423 self.assertNotIsInstance(f, P)
2466 self.assertNotIsInstance(D(), E)
2467 self.assertNotIsInstance(E(), D)
2567 self.assertNotIsInstance(C1(), P2)
2568 self.assertNotIsInstance(C2(), P2)
2602 self.assertNotIsInstance(C1(), P)
2603 self.assertNotIsInstance(C2(), P)
2666 self.assertNotIsInstance(C(), D)
2776 self.assertNotIsInstance(Empty(), protocol_class)
2813 self.assertNotIsInstance(CustomDirWithoutX(), HasX)
2840 self.assertNotIsInstance(MyPoint(), Point)
2845 self.assertNotIsInstance(Bad(), Proto)
2846 self.assertNotIsInstance(Bad(), Point)
2847 self.assertNotIsInstance(Bad(), Position)
2848 self.assertNotIsInstance(Bad(), Concrete)
2849 self.assertNotIsInstance(Other(), Concrete)
2878 self.assertNotIsInstance(f, HasX)
2882 self.assertNotIsInstance(f, HasX)
2891 self.assertNotIsInstance(Other1(), C)
2951 self.assertNotIsInstance(B(), P)
2952 self.assertNotIsInstance(C(), P)
2973 self.assertNotIsInstance(C(), NonP)
2974 self.assertNotIsInstance(D(), NonPR)
2995 self.assertNotIsInstance(BadClass(), C)
3196 self.assertNotIsInstance(B(), P)
3544 self.assertNotIsInstance({}, MyMapping)
3563 self.assertNotIsInstance(MM(), List)
3564 self.assertNotIsInstance({}, MM)
5620 self.assertNotIsInstance([], typing.Hashable)
5628 self.assertNotIsInstance(42, typing.Iterable)
5636 self.assertNotIsInstance(42, typing.Iterator)
5647 self.assertNotIsInstance(foo, typing.Awaitable)
5661 self.assertNotIsInstance(foo, typing.Coroutine)
5672 self.assertNotIsInstance(42, typing.AsyncIterable)
5678 self.assertNotIsInstance(42, typing.AsyncIterator)
5682 self.assertNotIsInstance(42, typing.Sized)
5686 self.assertNotIsInstance(42, typing.Container)
5692 self.assertNotIsInstance(42, typing.Collection)
5696 self.assertNotIsInstance(42, typing.AbstractSet)
5700 self.assertNotIsInstance(frozenset(), typing.MutableSet)
5704 self.assertNotIsInstance(42, typing.Mapping)
5708 self.assertNotIsInstance(42, typing.MutableMapping)
5712 self.assertNotIsInstance(42, typing.Sequence)
5716 self.assertNotIsInstance((), typing.MutableSequence)
6028 self.assertNotIsInstance(type(g), G)
6029 self.assertNotIsInstance(g, G)
6099 self.assertNotIsInstance(42, typing.ContextManager)
6105 self.assertNotIsInstance(NotACM(), typing.AsyncContextManager)
6111 self.assertNotIsInstance(cm, typing.AsyncContextManager)
8301 self.assertNotIsInstance(type_to_test, collections.abc.Iterable)