'check extra list items in template'

def test_list_match_extra_item_template(self):

    template_data = {u'links': [{u'href': u'%(versioned_compute_endpoint)s/server/%(uuid)s', u'rel': u'self'}, {u'href': u'%(compute_endpoint)s/servers/%(uuid)s', u'rel': u'bookmark'}, u'foo']}
    response_data = {u'links': [{u'href': u'http://openstack.example.com/v2/openstack/server/858f295a-8543-45fa-804a-08f8356d616d', u'rel': u'self'}, {u'href': u'http://openstack.example.com/openstack/servers/858f295a-8543-45fa-804a-08f8356d616d', u'rel': u'bookmark'}]}
    with testtools.ExpectedException(api_samples_test_base.NoMatch):
        self.ast._compare_result(expected=template_data, result=response_data, result_str='Test')
