Exemple #1
0
    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)
Exemple #2
0
    def test_banner(self):
        """ Package.banner() test """

        Config.params['cfg'] = 'setup.cfg'
        expected = Package.banner()
        self.assertIsNotNone(expected)
        self.assertIs(type(expected), str)