# Path: tests/api_tests.py
# def betamaxed(original_function):
#     @wraps(original_function)
#     def new_function(api, *args, **kwargs):
#         with Betamax(api.session).use_cassette(original_function.__name__):
#             return original_function(api, *args, **kwargs)
# 
#     return new_function


from tests import betamaxed


@betamaxed
def test_search_extension(api):
    """Search should return something sensible."""
    r = api.extensions.search_extension(with_usage_count=True)
    assert r[0].usage_count is not None



# Path: tests/api_tests.py
# def betamaxed(original_function):
#     @wraps(original_function)
#     def new_function(api, *args, **kwargs):
#         with Betamax(api.session).use_cassette(original_function.__name__):
#             return original_function(api, *args, **kwargs)
# 
#     return new_function


# Path: tests/test_extensions.py
from tests import betamaxed



@betamaxed
def test_search_extension(api):
    """Search should return something sensible."""
    r = api.extensions.search_extension(with_usage_count=True)
    assert r[0].usage_count is not None



@betamaxed