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

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

src/f/e/feincms-HEAD/tests/testapp/tests/test_page.py   feincms(Download)
    def test_37_invalid_parent(self):
        self.create_default_page_set()
 
        page1, page2 = list(Page.objects.order_by('id'))
 
        page1.parent = page1
        self.assertRaises(InvalidMove, page1.save)
 
        self.create_page('Page 3', parent=page2)
        page1, page2, page3 = list(Page.objects.order_by('id'))