def METHOD_NAME(self):
    filename = "sphere.txt"
    ds = fake_random_ds(16, particles=10)
    sp = ds.sphere(ds.domain_center, 0.25)
    with assert_raises(YTException):
        sp.write_out(filename, fields=[("all", "particle_ones")])