def test_get_signature_end(): def some_function(*args, **kwargs): pass expected = '(*args, **kwargs)' computed = get_signature_end(some_function) assert expected == computed
def test_wrapping_signature(): expected = '(parent_name, parent_values)' computed = get_signature_end(HyperParameters.conditional_scope) assert computed == expected
def test_get_signature_end_method(): expected = "(volume, good_boy=True, name='doggy')" computed = get_signature_end(Dog.woof) assert expected == computed
def test_get_signature_end_method_hard(): expected = "(arg, arg2=0)" result = get_signature_end(Dog.hard_method) assert expected == result