'Attempts to upload many objects that exceeds the count limit.'

@decorators.idempotent_id('3a387039-697a-44fc-a9c0-935de31f426b')
@test.requires_ext(extension='container_quotas', service='object')
@decorators.attr(type='smoke')
def test_upload_too_many_objects(self):

    for _ in range(QUOTA_COUNT):
        name = data_utils.rand_name(name='TestObject')
        self.object_client.create_object(self.container_name, name, '')
    nbefore = self._get_object_count()
    self.assertEqual(nbefore, QUOTA_COUNT)
    self.assertRaises(lib_exc.OverLimit, self.object_client.create_object, self.container_name, 'OverQuotaObject', '')
    nafter = self._get_object_count()
    self.assertEqual(nbefore, nafter)
