예제 #1
0
파일: is_.py 프로젝트: brunogola/skink
def _wrap_shortcut(x):
    if isinstance(x, type):
        return instance_of(x)
    else:
        return wrap_shortcut(x)
예제 #2
0
파일: isnot.py 프로젝트: Nukker/PyHamcrest
def wrap_value_or_type(x):
    if is_matchable_type(x):
        return instance_of(x)
    else:
        return wrap_matcher(x)
예제 #3
0
파일: is_.py 프로젝트: arashja/hamcrest
def wrap_value_or_type(x):
    if isinstance(x, type):
        return instance_of(x)
    else:
        return wrap_matcher(x)
예제 #4
0
def wrap_value_or_type(x):
    if is_matchable_type(x):
        return instance_of(x)
    else:
        return wrap_matcher(x)