# Path: staticassets/finder.py
# class BaseAssetFinder(object):
# class AssetFinder(BaseAssetFinder):
#     def find(self, path, bundle=False, **options):
#     def __init__(self):
#     def find(self, path, **options):
#     def resolve(self, path, **options):
#     def list(self):
#     def get_search_regex(self, path, content_type=None):
#     def get_cache_key(self, path, options):
# def find(*args, **kwargs):
# def resolve(*args, **kwargs):
# 
# Path: staticassets/exceptions.py
# class AssetNotFound(Exception):
#     pass
# 
# Path: tests/test.py
# class TestCase(BaseTestCase):
#     fixtures_dir = 'default'
# 
#     def fixture_path(self, path):
#         return os.path.join(FIXTURES_ROOT, self.fixtures_dir, path)
# 
#     def fixture(self, path):
#         return read_file(self.fixture_path(path))
# 
#     def file_digest(self, path):
#         return get_digest(read_file(path))
# 
#     def tearDown(self):
#         cache.clear()


from staticassets.finder import StaticFilesFinder, default_finder as staticassets_finder
from staticassets.exceptions import AssetNotFound
from .test import TestCase



class FinderTest(TestCase):
    def setUp(self):
        self.finder = StaticFilesFinder()

    def test_default_finder(self):
        self.assertIsNotNone(staticassets_finder)

    def test_resolve_nonexistent_file(self):
        self.assertRaises(AssetNotFound, self.finder.resolve, 'nonexistent.js')

    def test_find_nonexistent_asset(self):

# Path: staticassets/finder.py
# class BaseAssetFinder(object):
# class AssetFinder(BaseAssetFinder):
#     def find(self, path, bundle=False, **options):
#     def __init__(self):
#     def find(self, path, **options):
#     def resolve(self, path, **options):
#     def list(self):
#     def get_search_regex(self, path, content_type=None):
#     def get_cache_key(self, path, options):
# def find(*args, **kwargs):
# def resolve(*args, **kwargs):
# 
# Path: staticassets/exceptions.py
# class AssetNotFound(Exception):
#     pass
# 
# Path: tests/test.py
# class TestCase(BaseTestCase):
#     fixtures_dir = 'default'
# 
#     def fixture_path(self, path):
#         return os.path.join(FIXTURES_ROOT, self.fixtures_dir, path)
# 
#     def fixture(self, path):
#         return read_file(self.fixture_path(path))
# 
#     def file_digest(self, path):
#         return get_digest(read_file(path))
# 
#     def tearDown(self):
#         cache.clear()


# Path: tests/test_finder.py
from staticassets.finder import StaticFilesFinder, default_finder as staticassets_finder
from staticassets.exceptions import AssetNotFound
from .test import TestCase




class FinderTest(TestCase):
    def setUp(self):
        self.finder = StaticFilesFinder()

    def test_default_finder(self):
        self.assertIsNotNone(staticassets_finder)

    def test_resolve_nonexistent_file(self):
        self.assertRaises(AssetNotFound, self.finder.resolve, 'nonexistent.js')

    def test_find_nonexistent_asset(self):

        self.assertRaises(AssetNotFound, self.finder.find, 'nonexistent.js')