'Search by add-on name.'

def test_search_addon_exists(self):

    self.make_approvals()
    app = self.apps[0]
    r = self.client.get(self.url, dict(search=app.name))
    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')
