Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/test/
Dtest_collections.py473 self.assertNotIsInstance(C(), abc)
537 self.assertNotIsInstance(x, Awaitable)
549 self.assertNotIsInstance(c, Awaitable)
587 self.assertNotIsInstance(x, Coroutine)
599 self.assertNotIsInstance(c, Coroutine)
631 self.assertNotIsInstance(x, Hashable)
662 self.assertNotIsInstance(x, AsyncIterable)
678 self.assertNotIsInstance(x, AsyncIterator)
684 self.assertNotIsInstance(AnextOnly(), AsyncIterator)
691 self.assertNotIsInstance(x, Iterable)
[all …]
Dtest_typing.py429 self.assertNotIsInstance(None, Callable)
439 self.assertNotIsInstance(None, Callable[[], None])
441 self.assertNotIsInstance(None, Callable[[], Any])
714 self.assertNotIsInstance({}, MyMapping)
733 self.assertNotIsInstance(MM(), List)
734 self.assertNotIsInstance({}, MM)
1678 self.assertNotIsInstance([], typing.Hashable)
1686 self.assertNotIsInstance(42, typing.Iterable)
1694 self.assertNotIsInstance(42, typing.Iterator)
1706 self.assertNotIsInstance(foo, typing.Awaitable)
[all …]
Dtest_bool.py231 self.assertNotIsInstance(True & 1, bool)
235 self.assertNotIsInstance(True | 1, bool)
239 self.assertNotIsInstance(True ^ 1, bool)
Dtest_ftplib.py858 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
865 self.assertNotIsInstance(sock, ssl.SSLSocket)
877 self.assertNotIsInstance(sock, ssl.SSLSocket)
882 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
912 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
Dtest_xml_etree_c.py91 self.assertNotIsInstance(cET.Element.__init__, types.FunctionType)
Dtest_abc.py259 self.assertNotIsInstance(b, A)
260 self.assertNotIsInstance(b, (A,))
Dtest_winconsoleio.py122 self.assertNotIsInstance(f, ConIO)
Dtest_hash.py147 self.assertNotIsInstance(obj, Hashable)
Dtest_plistlib.py176 self.assertNotIsInstance(pl, plistlib._InternalDict)
Dtest_io.py3513 self.assertNotIsInstance(f, abcmodule.BufferedIOBase)
3514 self.assertNotIsInstance(f, abcmodule.TextIOBase)
3517 self.assertNotIsInstance(f, abcmodule.RawIOBase)
3519 self.assertNotIsInstance(f, abcmodule.TextIOBase)
3522 self.assertNotIsInstance(f, abcmodule.RawIOBase)
3523 self.assertNotIsInstance(f, abcmodule.BufferedIOBase)
Dtest_tcl.py358 self.assertNotIsInstance(result, bool)
/external/python/cpython2/Lib/test/
Dtest_collections.py297 self.assertNotIsInstance(C(), abc)
301 self.assertNotIsInstance(C(), abc)
341 self.assertNotIsInstance(x, Hashable)
368 self.assertNotIsInstance(x, Iterable)
393 self.assertNotIsInstance(x, Iterator)
413 self.assertNotIsInstance(NextOnly(), Iterator)
418 self.assertNotIsInstance(NextOnlyNew(), Iterator)
426 self.assertNotIsInstance(x, Sized)
444 self.assertNotIsInstance(x, Container)
463 self.assertNotIsInstance(x, Callable)
[all …]
Dtest_abc.py92 self.assertNotIsInstance(b, A)
93 self.assertNotIsInstance(b, (A,))
Dtest_ftplib.py661 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
668 self.assertNotIsInstance(sock, ssl.SSLSocket)
682 self.assertNotIsInstance(sock, ssl.SSLSocket)
688 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
718 self.assertNotIsInstance(self.client.sock, ssl.SSLSocket)
Dtest_bool.py251 self.assertNotIsInstance(True & 1, bool)
255 self.assertNotIsInstance(True | 1, bool)
259 self.assertNotIsInstance(True ^ 1, bool)
Dtest_typechecks.py82 self.assertNotIsInstance(3, X)
Dtest_hash.py120 self.assertNotIsInstance(obj, Hashable)
Dtest_io.py2974 self.assertNotIsInstance(f, abcmodule.BufferedIOBase)
2975 self.assertNotIsInstance(f, abcmodule.TextIOBase)
2978 self.assertNotIsInstance(f, abcmodule.RawIOBase)
2980 self.assertNotIsInstance(f, abcmodule.TextIOBase)
2983 self.assertNotIsInstance(f, abcmodule.RawIOBase)
2984 self.assertNotIsInstance(f, abcmodule.BufferedIOBase)
/external/python/cpython3/Lib/test/test_email/
Dtest_parser.py85 self.assertNotIsInstance(msg, self.MyMessage)
Dtest_policy.py212 self.assertNotIsInstance(h, headerregistry.UnstructuredHeader)
214 self.assertNotIsInstance(h, self.Foo)
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmock.py932 self.assertNotIsInstance(mock.foo, Subclass)
933 self.assertNotIsInstance(mock(), Subclass)
1561 self.assertNotIsInstance(mock, int)
Dtesthelpers.py790 self.assertNotIsInstance(none, type(None))
927 self.assertNotIsInstance(returned, PropertyMock)
/external/python/cpython2/Lib/unittest/test/
Dtest_case.py452 self.assertNotIsInstance(thing, dict)
453 self.assertRaises(self.failureException, self.assertNotIsInstance,
/external/python/cpython3/Lib/unittest/test/
Dtest_case.py630 self.assertNotIsInstance(thing, dict)
631 self.assertRaises(self.failureException, self.assertNotIsInstance,
/external/python/cpython2/Lib/email/test/
Dtest_email.py3346 self.assertNotIsInstance(param, tuple)
3499 self.assertNotIsInstance(param, tuple)
3523 self.assertNotIsInstance(param, tuple)

12