示例#1
0
 def test_from_response_headers_works(self):
     assert LastmodInfo.from_response_headers("http://boop", {
         "ETag": "blah",
         "Last-Modified": "flarg"
     }) == LastmodInfo("http://boop", "blah", "flarg")
示例#2
0
 def test_from_response_headers_works(self):
     assert LastmodInfo.from_response_headers('http://boop', {
         'ETag': 'blah',
         'Last-Modified': 'flarg'
     }) == LastmodInfo('http://boop', 'blah', 'flarg')