'Format the filters to a comprehensive WQL `WHERE` clause.'

def test_wql_filtering(self):

    from checks.libs.wmi import sampler
    format_filter = sampler.WMISampler._format_filter
    no_filters = []
    filters = [{'Name': 'SomeName', 'Id': 'SomeId'}]
    self.assertEquals('', format_filter(no_filters))
    self.assertEquals("    WHERE    (    Name    =    'SomeName'    AND    Id    =    'SomeId'    )", format_filter(filters))
