def test_banner_exception(self): """ Package.banner() exception test """ Config.params['cfg'] = 'wrong.cfg' with self.assertRaises(PackageError) as context: Package.banner() self.assertTrue(PackageError == context.expected)
def test_banner(self): """ Package.banner() test """ Config.params['cfg'] = 'setup.cfg' expected = Package.banner() self.assertIsNotNone(expected) self.assertIs(type(expected), str)