'Attempts to uploads an object smaller than the bytes quota.'

@decorators.idempotent_id('9a0fb034-86af-4df0-86fa-f8bd7db21ae0')
@test.requires_ext(extension='container_quotas', service='object')
@decorators.attr(type='smoke')
def test_upload_valid_object(self):

    object_name = data_utils.rand_name(name='TestObject')
    data = data_utils.arbitrary_string(QUOTA_BYTES)
    nbefore = self._get_bytes_used()
    (resp, _) = self.object_client.create_object(self.container_name, object_name, data)
    self.assertHeaders(resp, 'Object', 'PUT')
    nafter = self._get_bytes_used()
    self.assertEqual((nbefore + len(data)), nafter)
