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

Method test_decode

Lib/test/test_base64.py:1434–1438  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1432 self.assertIsNone(err)
1433
1434 def test_decode(self):
1435 with open(os_helper.TESTFN, 'wb') as fp:
1436 fp.write(b'Yf9iCg==')
1437 output = self.get_output('-d', os_helper.TESTFN)
1438 self.assertEqual(output.rstrip(), b'a\xffb')
1439
1440 def test_prints_usage_with_help_flag(self):
1441 output = self.get_output('-h')

Callers

nothing calls this directly

Calls 5

get_outputMethod · 0.95
openFunction · 0.50
writeMethod · 0.45
assertEqualMethod · 0.45
rstripMethod · 0.45

Tested by

no test coverage detected