Sign in
android
/
platform
/
external
/
python
/
cpython3
/
ac8a72a99c9dd481e82c5a6054d293497d28c742
/
.
/
Lib
/
unittest
/
test
/
testmock
/
support.py
blob: 49986d65dc47af6fef681e9662a5ceee7b7696b7 [
file
] [
log
] [
blame
]
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