예제 #1
0
    def areaFiltersMatchReferenceDb(self):
        self.assertEqual(statistics.disk_usage(self.session),
                         136572)
        self.assertEqual(statistics.disk_usage(self.session, areas=['main']),
                         111016)
        self.assertEqual(statistics.disk_usage(self.session,
                                               suite='wheezy', areas=['main']),
                         35824)

        area_count = statistics.source_packages(self.session, areas=['main'])
        self.assertEqual(area_count, 14)
        self.assertLessEqual(area_count,
                             statistics.source_packages(self.session))

        area_count = statistics.source_files(self.session, areas=['contrib'])
        self.assertEqual(area_count, 372)
        self.assertLessEqual(area_count, statistics.source_files(self.session))

        area_count = statistics.sloccount_lang(self.session,
                                               'ansic', areas=['non-free'])
        self.assertEqual(area_count, 147526)
        self.assertLessEqual(area_count,
                             statistics.sloccount_lang(self.session, 'ansic'))

        area_count = statistics.ctags(self.session, areas=['main'])
        self.assertEqual(area_count, 55994)
        self.assertLessEqual(area_count, statistics.ctags(self.session))
예제 #2
0
    def areaFiltersMatchReferenceDb(self):
        self.assertEqual(statistics.disk_usage(self.session), 180732)
        self.assertEqual(statistics.disk_usage(self.session, areas=['main']),
                         155176)
        self.assertEqual(
            statistics.disk_usage(self.session, suite='wheezy',
                                  areas=['main']), 35824)

        area_count = statistics.source_packages(self.session, areas=['main'])
        self.assertEqual(area_count, 17)
        self.assertLessEqual(area_count,
                             statistics.source_packages(self.session))

        area_count = statistics.source_files(self.session, areas=['contrib'])
        self.assertEqual(area_count, 372)
        self.assertLessEqual(area_count, statistics.source_files(self.session))

        area_count = statistics.sloccount_lang(self.session,
                                               'ansic',
                                               areas=['non-free'])
        self.assertEqual(area_count, 147526)
        self.assertLessEqual(area_count,
                             statistics.sloccount_lang(self.session, 'ansic'))

        area_count = statistics.ctags(self.session, areas=['main'])
        self.assertEqual(area_count, 87507)
        self.assertLessEqual(area_count, statistics.ctags(self.session))
예제 #3
0
    def areaFiltersMatchReferenceDb(self):
        self.assertEqual(statistics.disk_usage(self.session), 181628)
        self.assertEqual(statistics.disk_usage(self.session, areas=["main"]),
                         156072)
        self.assertEqual(
            statistics.disk_usage(self.session, suite="wheezy",
                                  areas=["main"]), 35824)

        area_count = statistics.source_packages(self.session, areas=["main"])
        self.assertEqual(area_count, 18)
        self.assertLessEqual(area_count,
                             statistics.source_packages(self.session))

        area_count = statistics.source_files(self.session, areas=["contrib"])
        self.assertEqual(area_count, 372)
        self.assertLessEqual(area_count, statistics.source_files(self.session))

        area_count = statistics.sloccount_lang(self.session,
                                               "ansic",
                                               areas=["non-free"])
        self.assertEqual(area_count, 147526)
        self.assertLessEqual(area_count,
                             statistics.sloccount_lang(self.session, "ansic"))

        area_count = statistics.ctags(self.session, areas=["main"])
        self.assertEqual(area_count, 88251)
        self.assertLessEqual(area_count, statistics.ctags(self.session))
예제 #4
0
 def sourceFilesCountsMatchReferenceDb(self):
     source_files = {
         'squeeze': 2024,
         'wheezy': 1632,
         'jessie': 2038,
         'sid': 1677,
         'experimental': 1396,
     }
     total_files = 6601
     self.assertSuiteCountsEqual(source_files, statistics.source_files)
     self.assertEqual(total_files, statistics.source_files(self.session))
예제 #5
0
 def sourceFilesCountsMatchReferenceDb(self):
     source_files = {
         'squeeze': 2024,
         'wheezy': 1632,
         'jessie': 2038,
         'sid': 2613,
         'experimental': 1396,
     }
     total_files = 9333
     self.assertSuiteCountsEqual(source_files, statistics.source_files)
     self.assertEqual(total_files, statistics.source_files(self.session))
예제 #6
0
 def sourceFilesCountsMatchReferenceDb(self):
     source_files = {
         "squeeze": 2024,
         "wheezy": 1632,
         "jessie": 2059,
         "sid": 2613,
         "experimental": 1396,
     }
     total_files = 9354
     self.assertSuiteCountsEqual(source_files, statistics.source_files)
     self.assertEqual(total_files, statistics.source_files(self.session))