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

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

src/q/u/quality_report-1.0/unittests/metric/product/unittest_metric_tests.py   quality_report(Download)
        product = FakeSubject(has_unittests=True)
        project = domain.Project(sonar=self.__sonar)
        self.failUnless(metric.UnittestCoverage.can_be_measured(product, 
                                                                project))
 
        product = FakeSubject(has_unittests=False)
        project = domain.Project(sonar=self.__sonar)
        self.failIf(metric.UnittestCoverage.can_be_measured(product, project))
 
    def test_cant_be_measured_without_sonar(self):
        ''' Test that the metric can only be measured when the project has
            Sonar. '''
        product = FakeSubject(has_unittests=True)
        project = domain.Project()
        self.failIf(metric.UnittestCoverage.can_be_measured(product, project))