Beispiel #1
0
class TestApplication(unittest.TestCase):
    app = None

    def setUp(self):
        self.app = Application([])

    def test_initial_state(self):
        self.assertFalse(self.app._initialized)
        self.assertIsInstance(self.app._plugin_manager, PluginManager)
        self.assertEqual(self.app._event_handler, None)

    def test_bootstrap(self):
        self.app.bootstrap()
        self.assertTrue(self.app._initialized)
        self.assertIsInstance(self.app._event_handler, EventHandler)
Beispiel #2
0
class TestApplication(unittest.TestCase):
	app = None

	def setUp(self):
		self.app = Application([])

	def test_initial_state(self):
		self.assertFalse(self.app._initialized)
		self.assertIsInstance(self.app._plugin_manager, PluginManager)
		self.assertEqual(self.app._event_handler, None)
	
	def test_bootstrap(self):
		self.app.bootstrap()
		self.assertTrue(self.app._initialized)
		self.assertIsInstance(self.app._event_handler, EventHandler)
Beispiel #3
0
 def setUp(self):
     self.app = Application([])
Beispiel #4
0
def main():
    Application(sys.argv[1:]).run()
Beispiel #5
0
	def setUp(self):
		self.app = Application([])