def test_case_sensetive_filenames(self): imp = Resource(None, RESOURCE_PATH) first = self._res_cache.get_resource(imp.directory, imp.name.lower()) second = self._res_cache.get_resource(imp.directory, imp.name.upper()) assert_true(first is second)
def test_file_with_absolute_path(self): imp = Resource(ParentMock(), RESOURCE_PATH) assert_true(self._res_cache.get_resource(imp.directory, imp.name))
def test_file_with_invalid_path(self): imp = Resource(ParentMock(), '${kumikameli}') assert_is_none(self._res_cache.get_resource(imp.directory, imp.name))
def test_file_read_only_once(self): imp = Resource(None, RESOURCE_PATH) first = self._res_cache.get_resource(imp.directory, imp.name) second = self._res_cache.get_resource(imp.directory, imp.name) assert_true(first is second)