Ticket #14468: 14468.diff

File 14468.diff, 1.0 KB (added by Johannes Dollinger, 9 years ago)
  • tests/regressiontests/test_client_regress/models.py

     
    843843                         encode_file('IGNORE', 'IGNORE', DummyFile("file.bin"))[2])
    844844        self.assertEqual('Content-Type: text/plain',
    845845                         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',))
    848849        self.assertEqual('Content-Type: application/octet-stream',
    849850                         encode_file('IGNORE', 'IGNORE', DummyFile("file.unknown"))[2])
    850851
Back to Top