Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/m/o/moztrap-HEAD/tests/model/execution/models/test_run.py   moztrap(Download)
    def test_parent(self):
        """A Run's ``parent`` property returns its ProductVersion."""
        r = self.F.RunFactory()
 
        self.assertIs(r.parent, r.productversion)

src/m/o/moztrap-HEAD/tests/view/lists/test_finder.py   moztrap(Download)
        res = self.on_template_response({}, decorator=self.finder(MockFinder))
 
        self.assertIs(res.context_data["finder"]["finder"], f)
        self.assertEqual(
            res.context_data["finder"]["top"],
        objects = c.objects()
 
        self.assertIs(objects, qs.all.return_value)
 
 
        url = c.goto_url(obj)
 
        self.assertIs(url, filter_url.return_value)
        filter_url.assert_called_with("goto_name", obj)
 
        url = c.goto_url(Mock())
 
        self.assertIs(url, None)
 

src/m/o/moztrap-HEAD/tests/model/core/models/test_productversion.py   moztrap(Download)
    def test_parent(self):
        """A ProductVersion's ``parent`` property returns its Product."""
        pv = self.F.ProductVersionFactory()
 
        self.assertIs(pv.parent, pv.product)

src/m/o/moztrap-HEAD/tests/view/manage/test_filters.py   moztrap(Download)
        qs.filter.assert_called_with(productversion__in=[pv.id])
        # no other filters intervening
        self.assertIs(qs2, qs.filter.return_value.distinct.return_value)