'Test that we only parse context on HTML pages.'

def test_html_only_context(self):

    robots_txt = 'Disallow:/page1\nDisallow:/page2'
    with open(os.path.join(self.site.path, 'pages', 'robots.txt'), 'w') as f:
        f.write(robots_txt)
    self.site.build()
    with open(os.path.join(self.site.build_path, 'robots.txt'), 'rU') as f:
        self.assertEquals(robots_txt, f.read())
