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

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

src/q/u/quality_report-1.0/unittests/formatting/dot_formatter_tests.py   quality_report(Download)
    def test_body_one_service(self):
        ''' Test that the body returns a graph with one service. '''
        report = fake_report.Report(services=[domain.Service(None, 'Service', 
                                                             'SRV')])
        self.assertEqual('"SRV" [label="SRV" style="filled" ' \
    def test_body_one_service_dependency(self):
        ''' Test that the body returns a graph with one service dependency. '''
        service1 = domain.Service(None, 'Service 1', 'SRV1')
        service2 = domain.Service(None, 'Service 2', 'SRV2', 
                                  dependencies=[service1])

src/q/u/quality_report-1.0/unittests/domain/service_tests.py   quality_report(Download)
    def setUp(self):  # pylint: disable=C0103
        self.__service = domain.Service(None, 'SV', 'Service', 
                                        'java_melody_id', 'nagios_id', 
                                        'Nagios')
 

src/q/u/quality_report-1.0/unittests/report_tests.py   quality_report(Download)
    def test_service(self):
        ''' Test that the report has two sections when we add a service:
            one for the service itself and one for meta metrics. '''
        self.__project.add_service(domain.Service(self.__project, 'S1', 
                                                  'Service 1'))
    def test_get_service_section(self):
        ''' Test that the section for the service can be found. '''
        service = domain.Service(self.__project, 'S1', 'Service 1')
        self.__project.add_service(service)
        quality_report = report.QualityReport(self.__project)
    def test_get_service_section_twice(self):
        ''' Test that the service section is cached. '''
        service = domain.Service(self.__project, 'S1', 'Service 1')
        self.__project.add_service(service)
        quality_report = report.QualityReport(self.__project)
    def test_services(self):
        ''' Test that the report returns the services. '''
        service = domain.Service(self.__project, 'S1', 'Service 1')
        self.__project.add_service(service)
        quality_report = report.QualityReport(self.__project)
            project.add_product(product)
        if service_kwargs:
            service = domain.Service(project, **service_kwargs)
            project.add_service(service)
        quality_report = report.QualityReport(project)