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

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

src/m/o/moztrap-HEAD/tests/model/core/test_auth.py   moztrap(Download)
 
        with self.assertRaises(self.model.User.DoesNotExist):
            self.refresh(u)
 
 
 
        with self.assertRaises(self.model.User.DoesNotExist):
            self.refresh(u)
 
 

src/m/o/moztrap-HEAD/tests/model/execution/models/test_run.py   moztrap(Download)
            settings.DEBUG = False
 
        self.refresh(r)
 
        self.assertEqual(r.runcaseversions.count(), 6)
        r.refresh()
 
        self.refresh(r)
 
        self.assertEqual(r.runcaseversions.count(), 6)

src/m/o/moztrap-HEAD/tests/view/manage/cases/test_forms.py   moztrap(Download)
 
        cv = form.save()
        cv = self.refresh(cv)
 
        self.assertEqual(cv.name, "new name")
 
        cv = form.save()
        cv = self.refresh(cv)
 
        self.assertEqual(cv.name, "new name")

src/m/o/moztrap-HEAD/tests/model/execution/models/test_result.py   moztrap(Download)
        r2 = rcv.results.get(is_latest=True)
 
        r1 = self.refresh(r1)
        r1.comment = "this is it"
        r1.save()
 
        r1 = self.refresh(r1)
        r2 = self.refresh(r2)

src/m/o/moztrap-HEAD/tests/view/manage/productversions/test_forms.py   moztrap(Download)
    def test_edit_fill_from_2_missing(self):
        """Fill from a pv that has 2 cases missing from this one."""
        pv1 = self.F.ProductVersionFactory(version="1.0", codename="Foo")
        pv_fill_from = self.F.ProductVersionFactory(product=pv1.product, version="2.0")
        pv1 = self.refresh(pv1)
    def test_edit_fill_from_2_missing_1_extra(self):
        """Fill from a pv get 2, this has 1 extra."""
        pv1 = self.F.ProductVersionFactory(version="1.0", codename="Foo")
        pv_fill_from = self.F.ProductVersionFactory(product=pv1.product, version="2.0")
        pv1 = self.refresh(pv1)
    def test_edit_fill_from_0_missing(self):
        """Fill from a pv that has 2 cases missing from this one."""
        pv1 = self.F.ProductVersionFactory(version="1.0", codename="Foo")
        pv_fill_from = self.F.ProductVersionFactory(product=pv1.product, version="2.0")
        pv1 = self.refresh(pv1)

src/m/o/moztrap-HEAD/tests/model/environments/models/test_environment.py   moztrap(Download)
        env.remove_from_profile(user=u)
 
        env = self.refresh(env)
        self.assertEqual(env.profile, None)
        self.assertEqual(env.modified_by, u)