def run_tap(self, module): import tap,unittest tr = tap.TAPTestRunner() tr.set_stream(1) loader = unittest.TestLoader() tests = loader.loadTestsFromModule(module) tr.run(tests)
self.assertIs(c.vmdebootstrap_worker_vendor, ubuntu) # TODO: not sure whether it's correct for these to be inherited # from Ubuntu due to the cross-vendor base suite? self.assertEqual(c.autopkgtest, ['lxc', 'qemu']) self.assertEqual( c.get_mirrors().lookup_suite(scout), 'http://192.168.122.1:3142/repo.steamstatic.com/steamrt') self.assertEqual(scout.archive, 'repo.steamstatic.com/steamrt') try: import distro_info except ImportError: return ubuntu_info = distro_info.UbuntuDistroInfo() self.assertIs(c.worker_suite, c.get_suite(ubuntu, ubuntu_info.lts() + '-backports')) def tearDown(self): pass if __name__ == '__main__': import tap runner = tap.TAPTestRunner() runner.set_stream(True) unittest.main(verbosity=2, testRunner=runner)