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

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

src/q/u/qualitio-HEAD/qualitio/store/tests.py   qualitio(Download)
    def test_cannot_create_testcase_with_none_parent(self):
        TestCase.objects.create(name="Simple test 1")
 
    @raises(ValueError)
    def test_cannot_create_testcase_with_explicite_none_parent(self):
        TestCase.objects.create(name="Simple test 1", parent=None)
 
    def test_cannot_create_two_testcases_with_the_same_parent(self):
        TestCase.objects.create(name="Simple test 1", parent=self.big_project)
    def test_cannot_create_two_testcases_with_the_same_parent(self):
        TestCase.objects.create(name="Simple test 1", parent=self.big_project)
        try:
            TestCase.objects.create(name="Simple test 1", parent=self.big_project)
        except ValidationError, e: