'Test that the static URL builde and template tag work.'

def testStaticLoader(self):

    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())
