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))
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))
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))
def ctagsCountsMatchReferenceDb(self): ctags = { 'squeeze': 30644, 'wheezy': 20150, 'jessie': 23444, 'sid': 21406, 'experimental': 17284, } total_ctags = 84576 self.assertSuiteCountsEqual(ctags, statistics.ctags) self.assertEqual(total_ctags, statistics.ctags(self.session))
def ctagsCountsMatchReferenceDb(self): ctags = { 'squeeze': 30644, 'wheezy': 20150, 'jessie': 23444, 'sid': 28352, 'experimental': 17284, } total_ctags = 116089 self.assertSuiteCountsEqual(ctags, statistics.ctags) self.assertEqual(total_ctags, statistics.ctags(self.session))
def ctagsCountsMatchReferenceDb(self): ctags = { "squeeze": 31015, "wheezy": 20521, "jessie": 23816, "sid": 28723, "experimental": 17284, } total_ctags = 116833 self.assertSuiteCountsEqual(ctags, statistics.ctags) self.assertEqual(total_ctags, statistics.ctags(self.session))