Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mind1m committed Oct 27, 2014
2 parents d7443d7 + e262e65 commit 6e04d1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_client_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,12 @@ def test_POST_FILES_SINGLE_BINARY(self):
f.seek(0)
self.assertEqual(0, len(content['multipart-data']))
self.assertEqual(content['content'], f.read().decode())
self.assertEqual(content['headers']['Content-Type'],
'application/pgp-keys')

# if system cannot determine 'application/pgp-keys' MIME type
# then use 'application/octet-stream' default
self.assertIn(content['headers']['Content-Type'],
('application/pgp-keys',
'application/octet-stream'))
self.assertEqual(r.status, 200)
r.close()

Expand Down

0 comments on commit 6e04d1a

Please sign in to comment.