'Look for opensearch declaration in templates.'

def test_opensearch_declaration(self):

    response = self.client.get(reverse('commonplace.fireplace'))
    elm = pq(response.content)('link[rel=search][type="application/opensearchdescription+xml"]')
    eq_(elm.attr('href'), reverse('opensearch'))
    eq_(elm.attr('title'), 'Firefox    Apps')
