def test_staticfiles(self):
        """
        Test whether django-staticfiles is properly configured.

        There are various reasons why this could fail:
         * App not loaded (not in get_apps())
         * models.py missing
         * Addon not appended to STATICFILES_PREPEND_LABEL_APPS
         * STATIC_ROOT is not absolute path
         * STATICFILES_MEDIA_DIRNAMES doesn't include 'media'
        """
        suffix = 'css/icons.css'
        for addons_root in settings.ADDONS_ROOTS:
            ref = os.path.realpath('%s/locks/static/locks/%s' % (addons_root, suffix))
            if os.path.exists(ref):
                break
        path = 'locks/%s' % suffix
        r = AppDirectoriesFinder()
        self.assertEqual(ref, r.find(path))
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/locks/tests/test_staticfiles.py/TestStaticfiles.test_staticfiles/original