PATH:
opt
/
bitninja-python-dojo
/
embedded
/
lib
/
python3.9
/
unittest
/
test
/
testmock
target = {'foo': 'FOO'} def is_instance(obj, klass): """Version of is_instance that doesn't access __class__""" return issubclass(type(obj), klass) class SomeClass(object): class_attribute = None def wibble(self): pass class X(object): pass
[-] testwith.py
[edit]
[-] testasync.py
[edit]
[-] testmock.py
[edit]
[-] testsentinel.py
[edit]
[+]
..
[-] testmagicmethods.py
[edit]
[-] testhelpers.py
[edit]
[-] __main__.py
[edit]
[-] support.py
[edit]
[-] testcallable.py
[edit]
[+]
__pycache__
[-] testsealable.py
[edit]
[-] testpatch.py
[edit]
[-] __init__.py
[edit]