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

Method test_basic

Lib/test/test_urllib.py:658–665  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

656 self.tempFiles.append(fileName)
657
658 def test_basic(self):
659 # Make sure that a local file just gets its own location returned and
660 # a headers value is returned.
661 result = urllib.request.urlretrieve("file:%s" % os_helper.TESTFN)
662 self.assertEqual(result[0], os_helper.TESTFN)
663 self.assertIsInstance(result[1], email.message.Message,
664 "did not get an email.message.Message instance "
665 "as second returned value")
666
667 def test_copy(self):
668 # Test that setting the filename argument works.

Callers

nothing calls this directly

Calls 3

urlretrieveMethod · 0.80
assertIsInstanceMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected