'Check that parse->serialize echoes the original URL filter'

def testSerializeURLFilterEcho(self):

    assertEqual = self.assertEqual
    assertTrue = self.assertTrue
    url_query = {'project.organisation_id$name__like': '*test*', 'task.description__like!': '*test*'}
    resource = current.s3db.resource('project_project', vars=url_query)
    rfilter = resource.rfilter
    url_vars = rfilter.serialize_url()
    assertEqual(len(url_vars), len(url_query))
    for k in url_query:
        assertTrue((k in url_vars))
        assertEqual(url_vars[k], url_query[k])
