MCPcopy Index your code
hub / github.com/python/cpython / test_html_output_year_css

Method test_html_output_year_css

Lib/test/test_calendar.py:1246–1251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1244 self.assertEqual(output, result_2004_html.format(**format_with_css).encode('ascii'))
1245
1246 def test_html_output_year_css(self):
1247 self.assertFailure('-t', 'html', '-c')
1248 self.assertFailure('-t', 'html', '--css')
1249 for run in self.runners:
1250 output = run('-t', 'html', '--css', 'custom.css', '2004')
1251 self.assertIn(b'<link rel="stylesheet" href="custom.css">', output)
1252
1253
1254class MiscTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

assertFailureMethod · 0.95
assertInMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected