예제 #1
0
    def test_preloads(self):
        plan = self._preload_factory()
        req = mkt.site.tests.req_factory_factory(self.url, user=self.user)
        res = preloads(req)
        eq_(res.status_code, 200)
        doc = pq(res.content)

        eq_(doc('tbody tr').length, 1)
        eq_(doc('td:last-child a').attr('href'), plan.preload_test_plan_url)
예제 #2
0
    def test_preloads(self):
        plan = self._preload_factory()
        req = amo.tests.req_factory_factory(self.url, user=self.user)
        res = preloads(req)
        eq_(res.status_code, 200)
        doc = pq(res.content)

        eq_(doc('tbody tr').length, 1)
        eq_(doc('td:last-child a').attr('href'),
            plan.preload_test_plan_url)
예제 #3
0
    def test_preloads(self):
        plan = PreloadTestPlan.objects.create(addon=self.app, filename='tstpn')

        req = amo.tests.req_factory_factory(self.url, user=self.user)
        res = preloads(req)
        eq_(res.status_code, 200)
        doc = pq(res.content)

        eq_(doc('tbody tr').length, 1)
        eq_(doc('td:last-child a').attr('href'), plan.preload_test_plan_url)
예제 #4
0
    def test_preloads(self):
        plan = PreloadTestPlan.objects.create(addon=self.app, filename='tstpn')

        req = amo.tests.req_factory_factory(self.url, user=self.user)
        res = preloads(req)
        eq_(res.status_code, 200)
        doc = pq(res.content)

        eq_(doc('tbody tr').length, 1)
        eq_(doc('td:last-child a').attr('href'),
            plan.preload_test_plan_url)