<s> import os <EOL> import unittest <EOL> from django . conf import settings <EOL> from django . db . models . loading import get_app <EOL> from django . contrib . staticfiles . finders import AppDirectoriesFinder <EOL> class TestStaticfiles ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> pass <EOL> def tearDown ( self ) : <EOL> pass <EOL> def test_staticfiles ( self ) : <EOL> """<STR_LIT>""" <EOL> suffix = '<STR_LIT>' <EOL> for addons_root in settings . ADDONS_ROOTS : <EOL> ref = os . path . realpath ( '<STR_LIT>' % ( addons_root , suffix ) ) <EOL> if os . path . exists ( ref ) : <EOL> break <EOL> path = '<STR_LIT>' % suffix <EOL> r = AppDirectoriesFinder ( ) <EOL> self . assertEqual ( ref , r . find ( path ) ) </s>
