''

def test_widget_value_from_datadict(self):

    w = BooleanWidget()
    trueActive = {u'active': u'true'}
    result = w.value_from_datadict(trueActive, {}, u'active')
    self.assertEqual(result, True)
    falseActive = {u'active': u'false'}
    result = w.value_from_datadict(falseActive, {}, u'active')
    self.assertEqual(result, False)
    result = w.value_from_datadict({}, {}, u'active')
    self.assertEqual(result, None)
