'Search by app slug.'

def test_search_addon_by_slug_exists(self):

    app = self.apps[0]
    app.app_slug = 'a-fox-was-sly'
    app.save()
    self.make_approvals()
    r = self.client.get(self.url, dict(search='fox'))
    eq_(r.status_code, 200)
    tr = pq(r.content)(('#log-listing    tr[data-addonid="%s"]' % app.id))
    eq_(tr.length, 1)
    eq_(tr.siblings('.comments').text(), 'youwin')
