def test_full_clear(self):
        form = DocumentForm()
        self.assertTrue('name="myfile"' in unicode(form))
        self.assertTrue('myfile-clear' not in unicode(form))
        form = DocumentForm(files={'myfile': SimpleUploadedFile('something.txt', 'content')})
        self.assertTrue(form.is_valid())
        doc = form.save(commit=False)
        self.assertEqual(doc.myfile.name, 'something.txt')
        form = DocumentForm(instance=doc)
        self.assertTrue('myfile-clear' in unicode(form))
        form = DocumentForm(instance=doc, data={'myfile-clear': 'true'})
        doc = form.save(commit=False)
        self.assertEqual(bool(doc.myfile), False)
Return the brightness of this light between 0..255.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/model_forms_regress/tests.py/FileFieldTests.test_full_clear--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/light/lifx.py/LIFXLight.brightness