'Test construction of the URL variable for filter widgets'

def testVariable(self):

    variable = S3FilterWidget._variable('organisation.name', 'like')
    self.assertEqual(variable, 'organisation.name__like')
    variable = S3FilterWidget._variable('organisation.name', None)
    self.assertEqual(variable, 'organisation.name')
    variable = S3FilterWidget._variable('organisation.name', '')
    self.assertEqual(variable, 'organisation.name')
    variable = S3FilterWidget._variable('organisation.name', ('ge', 'le'))
    self.assertEqual(variable, ['organisation.name__ge', 'organisation.name__le'])
