Skip to content

content-language dict key is lowercase on mac, mixed case on windows #7

Description

@huguesv

Test_blobservice.py, test_set_blob_properties_with_existing_blob fails on mac.

def test_set_blob_properties_with_existing_blob(self):

Arrange

self._create_container_and_block_blob(self.container_name, 'blob1', 'hello world')

Act

resp = self.bc.set_blob_properties(self.container_name, 'blob1', x_ms_blob_content_language='spanish')

# Assert
self.assertIsNone(resp)
props = self.bc.get_blob_properties(self.container_name, 'blob1')
self.assertEquals(props['Content-Language'], 'spanish')

The reason is that on mac, the props dictionary has a key named 'content-language' in all lowercase, and it's mixed case on windows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions