def testStaticLoader(self):
        """
        Test that the static URL builde and template tag work.
        """
        static = '/static/css/style.css'
        page = "{%% static '%s' %%}" % static


        with open(os.path.join(self.path, 'pages', 'staticpage.html'), "w") as dst:
            dst.write(page)

        self.site.build()

        with open(os.path.join(self.path, '.build', 'staticpage.html'), "rU") as obtained:
            self.assertEqual(self.site.get_url_for_static(static), obtained.read())
dataset/ETHPy150Open koenbok/Cactus/cactus/tests/test_basic.py/TestSite.testStaticLoader/original