Sign in
chromium
/
external
/
github.com
/
python
/
cpython
/
ccda73828473576c57d1bb31774f56542d6e8964
/
.
/
Lib
/
test
/
test_unittest
/
testmock
/
support.py
blob: 49986d65dc47af6fef681e9662a5ceee7b7696b7 [
file
]
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