Ticket #14468: 14468.diff
File 14468.diff, 1.0 KB (added by , 14 years ago) |
---|
-
tests/regressiontests/test_client_regress/models.py
843 843 encode_file('IGNORE', 'IGNORE', DummyFile("file.bin"))[2]) 844 844 self.assertEqual('Content-Type: text/plain', 845 845 encode_file('IGNORE', 'IGNORE', DummyFile("file.txt"))[2]) 846 self.assertEqual('Content-Type: application/zip', 847 encode_file('IGNORE', 'IGNORE', DummyFile("file.zip"))[2]) 846 self.assertIn(encode_file('IGNORE', 'IGNORE', DummyFile("file.zip"))[2], ( 847 'Content-Type: application/zip', 848 'Content-Type: application/x-zip-compressed',)) 848 849 self.assertEqual('Content-Type: application/octet-stream', 849 850 encode_file('IGNORE', 'IGNORE', DummyFile("file.unknown"))[2]) 850 851