def test_content_encoding_gz(self):
     self.assertEqual('gzip',
                      swift_upload.get_content_encoding('filename.txt.gz'))
     self.assertEqual('gzip',
                      swift_upload.get_content_encoding('filename.gz'))
     self.assertEqual('gzip',
                      swift_upload.get_content_encoding('filename.log.gz'))
     self.assertEqual(
         'gzip', swift_upload.get_content_encoding('var/log/messages.1.gz'))
 def test_content_encoding_gz(self):
     self.assertEqual('gzip', swift_upload.get_content_encoding('filename.txt.gz'))
     self.assertEqual('gzip', swift_upload.get_content_encoding('filename.gz'))
     self.assertEqual('gzip', swift_upload.get_content_encoding('filename.log.gz'))
 def test_content_encoding_none(self):
     self.assertEqual(None, swift_upload.get_content_encoding('filename.txt'))
     self.assertEqual(None, swift_upload.get_content_encoding('filename'))
     self.assertEqual(None, swift_upload.get_content_encoding('filename.log'))
 def test_content_encoding_none(self):
     self.assertEqual(None,
                      swift_upload.get_content_encoding('filename.txt'))
     self.assertEqual(None, swift_upload.get_content_encoding('filename'))
     self.assertEqual(None,
                      swift_upload.get_content_encoding('filename.log'))