LOG.debug(
"Version of dpx_puppettools.app: " + dpx_puppettools.app.__version__)
+ # -------------------------------------------------------------------------
+ def test_init(self):
+
+ LOG.info("Testing init of a BaseDPXPuppetApplication object ...")
+ from dpx_puppettools.app import BaseDPXPuppetApplication
+
+ quiet = False
+ if not self.verbose:
+ quiet = True
+
+ app = BaseDPXPuppetApplication(
+ appname=self.appname, verbose=self.verbose)
+ app.quiet = quiet
+
+ LOG.debug("Drawing lines ...")
+ app.empty_line()
+ app.line(linechar='#', color='CYAN')
+ app.line(width=20)
+
+ LOG.debug("BaseDPXPuppetApplication %%r: %r", app)
+ app.empty_line()
+ LOG.debug("BaseDPXPuppetApplication %%s: %s", str(app))
+
# =============================================================================
if __name__ == '__main__':
suite = unittest.TestSuite()
suite.addTest(TestBaseApp('test_import', verbose))
+ suite.addTest(TestBaseApp('test_init', verbose))
runner = unittest.TextTestRunner(verbosity=verbose)