'Tests listing servers and filtering by the \'tags\' query
parameter which uses AND logic.'

def test_list_servers_filter_by_tags(self):

    servers = self.api.get_servers(search_opts=dict(tags='foo,bar'))
    self.assertEqual(1, len(servers))
    server = servers[0]
    self.assertEqual(self.two_tag_server['id'], server['id'])
    self.assertEqual(2, len(server['tags']))
    self.assertEqual(['bar', 'foo'], sorted(server['tags']))
    servers = self.api.get_servers(search_opts=dict(tags='foo'))
    self.assertEqual(2, len(servers))
