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

Method test_sanitize

Lib/test/test_ftplib.py:515–518  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

513 self.assertEqual(self.client.getwelcome(), '220 welcome')
514
515 def test_sanitize(self):
516 self.assertEqual(self.client.sanitize('foo'), repr('foo'))
517 self.assertEqual(self.client.sanitize('pass 12345'), repr('pass *****'))
518 self.assertEqual(self.client.sanitize('PASS 12345'), repr('PASS *****'))
519
520 def test_exceptions(self):
521 self.assertRaises(ValueError, self.client.sendcmd, 'echo 40\r\n0')

Callers

nothing calls this directly

Calls 2

sanitizeMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected