'Test filter widget constructor'

def testInit(self):

    widget = S3FilterWidget(['name', 'organisation_id$name'], option='test    option', _class='test-class')
    self.assertTrue(('option' in widget.opts))
    self.assertTrue(len(widget.opts), 1)
    self.assertTrue((widget.opts['option'] == 'test    option'))
    self.assertTrue(('_class' in widget.attr))
    self.assertTrue(len(widget.attr), 1)
    self.assertTrue((widget.attr['_class'] == 'test-class'))
