Revision da1597b9 kamaki/clients/test/pithos.py

b/kamaki/clients/test/pithos.py
390 390
                return_value=object_info):
391 391
            r = self.client.get_object_meta(obj)
392 392
            self.assert_dicts_are_equal(r, expected)
393

  
394
    def test_del_object_meta(self):
395
        obj = 'r4nd0m0bj3c7'
396
        metakey = '50m3m3t4k3y'
397
        with patch.object(PC, 'object_post', return_value=self.FR()) as post:
398
            self.client.del_object_meta(obj, metakey)
399
            self.assertEqual(
400
                post.mock_calls,
401
                [call(obj, update=True, metadata={metakey: ''})])

Also available in: Unified diff