Home
last modified time | relevance | path

Searched refs:assertNotIsInstance (Results 1 – 24 of 24) sorted by relevance

/third_party/python/Lib/test/
Dtest_typing.py478 self.assertNotIsInstance(None, Callable)
489 self.assertNotIsInstance(None, Callable[[], None])
491 self.assertNotIsInstance(None, Callable[[], Any])
839 self.assertNotIsInstance(C(), P)
841 self.assertNotIsInstance(f, P)
884 self.assertNotIsInstance(D(), E)
885 self.assertNotIsInstance(E(), D)
959 self.assertNotIsInstance(C1(), P2)
960 self.assertNotIsInstance(C2(), P2)
994 self.assertNotIsInstance(C1(), P)
[all …]
Dtest_collections.py729 self.assertNotIsInstance(C(), abc)
793 self.assertNotIsInstance(x, Awaitable)
805 self.assertNotIsInstance(c, Awaitable)
843 self.assertNotIsInstance(x, Coroutine)
855 self.assertNotIsInstance(c, Coroutine)
887 self.assertNotIsInstance(x, Hashable)
918 self.assertNotIsInstance(x, AsyncIterable)
934 self.assertNotIsInstance(x, AsyncIterator)
940 self.assertNotIsInstance(AnextOnly(), AsyncIterator)
947 self.assertNotIsInstance(x, Iterable)
[all …]
Dtest_bool.py224 self.assertNotIsInstance(True & 1, bool)
228 self.assertNotIsInstance(True | 1, bool)
232 self.assertNotIsInstance(True ^ 1, bool)
Dtest_ftplib.py933 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
940 self.assertNotIsInstance(sock, ssl.SSLSocket)
958 self.assertNotIsInstance(sock, ssl.SSLSocket)
965 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
989 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
Dtest_winconsoleio.py123 self.assertNotIsInstance(f, ConIO)
Dtest_xml_etree_c.py208 self.assertNotIsInstance(cET.Element.__init__, types.FunctionType)
Dtest_hash.py147 self.assertNotIsInstance(obj, Hashable)
Dtest_abc.py281 self.assertNotIsInstance(b, A)
282 self.assertNotIsInstance(b, (A,))
Dtest_io.py4068 self.assertNotIsInstance(f, abcmodule.BufferedIOBase)
4069 self.assertNotIsInstance(f, abcmodule.TextIOBase)
4072 self.assertNotIsInstance(f, abcmodule.RawIOBase)
4074 self.assertNotIsInstance(f, abcmodule.TextIOBase)
4077 self.assertNotIsInstance(f, abcmodule.RawIOBase)
4078 self.assertNotIsInstance(f, abcmodule.BufferedIOBase)
Dtest_tcl.py395 self.assertNotIsInstance(result, bool)
Dtest_descr.py4951 self.assertNotIsInstance(it, list)
4962 self.assertNotIsInstance(it, list)
4971 self.assertNotIsInstance(it, list)
Dtest_types.py703 self.assertNotIsInstance(None, x)
Dtest_mailbox.py36 self.assertNotIsInstance(part, mailbox.Message)
Dtest_functools.py944 self.assertNotIsInstance(k, collections.abc.Hashable)
Dtest_decimal.py2485 self.assertNotIsInstance(Decimal(0), numbers.Real)
/third_party/python/Lib/test/test_email/
Dtest_parser.py85 self.assertNotIsInstance(msg, self.MyMessage)
Dtest_policy.py225 self.assertNotIsInstance(h, headerregistry.UnstructuredHeader)
227 self.assertNotIsInstance(h, self.Foo)
Dtest_email.py5192 self.assertNotIsInstance(param, tuple)
5351 self.assertNotIsInstance(param, tuple)
5397 self.assertNotIsInstance(param, tuple)
/third_party/python/Lib/unittest/test/testmock/
Dtesthelpers.py866 self.assertNotIsInstance(none, type(None))
1088 self.assertNotIsInstance(returned, PropertyMock)
Dtestmock.py1239 self.assertNotIsInstance(mock.foo, Subclass)
1240 self.assertNotIsInstance(mock(), Subclass)
2111 self.assertNotIsInstance(mock, int)
/third_party/python/Lib/unittest/test/
Dtest_case.py656 self.assertNotIsInstance(thing, dict)
657 self.assertRaises(self.failureException, self.assertNotIsInstance,
/third_party/python/Lib/unittest/
Dcase.py1271 def assertNotIsInstance(self, obj, cls, msg=None): member in TestCase
/third_party/python/Doc/library/
Dunittest.rst854 | :meth:`assertNotIsInstance(a, b) | ``not isinstance(a, b)`` | 3.2 |
855 | <TestCase.assertNotIsInstance>` | | |
926 assertNotIsInstance(obj, cls, msg=None)
/third_party/python/Doc/whatsnew/
D2.7.rst1925 :meth:`~unittest.TestCase.assertNotIsInstance` check whether