def test_bucket_delete(self, filter_mock):
        make_default_admin()
        self.assertTrue(self.client.login(username=settings.OAUSER, password='openattic'))

        filter_mock.return_value = [4, 8, 15, 16, 23, 42]
        response = self.client.delete('/api/ceph_radosgw/bucket/delete?bucket=test01')
        self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
        self.assertIn('Can not delete the bucket', response.data['detail'])