'Attempts to upload an object larger than the bytes quota.'

@decorators.idempotent_id('22eeeb2b-3668-4160-baef-44790f65a5a0')
@test.requires_ext(extension='container_quotas', service='object')
@decorators.attr(type='smoke')
def test_upload_large_object(self):

    object_name = data_utils.rand_name(name='TestObject')
    data = data_utils.arbitrary_string((QUOTA_BYTES + 1))
    nbefore = self._get_bytes_used()
    self.assertRaises(lib_exc.OverLimit, self.object_client.create_object, self.container_name, object_name, data)
    nafter = self._get_bytes_used()
    self.assertEqual(nbefore, nafter)
