MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_data

Method test_data

Lib/test/test_urllib2.py:2029–2034  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2027 self.assertEqual("POST", self.force_post.get_method())
2028
2029 def test_data(self):
2030 self.assertFalse(self.get.data)
2031 self.assertEqual("GET", self.get.get_method())
2032 self.get.data = "spam"
2033 self.assertTrue(self.get.data)
2034 self.assertEqual("POST", self.get.get_method())
2035
2036 # issue 16464
2037 # if we change data we need to remove content-length header

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
assertTrueMethod · 0.80
assertEqualMethod · 0.45
get_methodMethod · 0.45

Tested by

no test coverage detected