[engine] Add initial version of event loop engine

Re-add the engine that is responsible for tying together input, output,
etc.

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-04 08:37:01 +01:00
parent e5201187a2
commit cf1693548b
3 changed files with 56 additions and 0 deletions

13
tests/test_engine.py Normal file
View file

@ -0,0 +1,13 @@
# pylint: disable=C0103,C0111
import unittest
from bumblebee.engine import Engine
class TestEngine(unittest.TestCase):
def setUp(self):
self.engine = Engine(None)
def test_stop(self):
self.assertTrue(self.engine.running())
self.engine.stop()
self.assertFalse(self.engine.running())