def testSampleFile(self):
    sample_file = 'extensions/talking_alarm_clock/background.js'
    response = self._Render(('extensions/examples/%s' % sample_file))
    self.assertEqual(200, response.status)
    self.assertTrue((response.headers['Content-Type'] in ('application/javascript; charset=utf-8', 'application/x-javascript; charset=utf-8')))
    self.assertEqual(ReadFile(('%s/%s' % (EXAMPLES, sample_file))), response.content.ToString())
def testSampleFile(self):
    sample_file = 'extensions/talking_alarm_clock/background.js'
    response = self._Render(('extensions/examples/%s' % sample_file))
    self.assertEqual(200, response.status)
    self.assertTrue((response.headers['Content-Type'] in ('application/javascript; charset=utf-8', 'application/x-javascript; charset=utf-8')))
    self.assertEqual(ReadFile(('%s/%s' % (EXAMPLES, sample_file))), response.content.ToString())