diff options
author | VG <vg@devys.org> | 2016-04-11 17:53:55 +0200 |
---|---|---|
committer | VG <vg@devys.org> | 2016-04-11 17:53:55 +0200 |
commit | c68ac4fb82b55f4ea6fcc28b4cef5f7ee38db238 (patch) | |
tree | 2a0cdbb614990259a7bf6b76346995dba8df2e52 /tests | |
parent | 4b59cc343e88cff459bc663bbc85e3c701fdd415 (diff) | |
download | wqueue-c68ac4fb82b55f4ea6fcc28b4cef5f7ee38db238.tar.gz wqueue-c68ac4fb82b55f4ea6fcc28b4cef5f7ee38db238.tar.bz2 wqueue-c68ac4fb82b55f4ea6fcc28b4cef5f7ee38db238.zip |
Auto-commit on 6d1dbe8495b5fafbc5f50d80268d0ca5b7b097be
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/tests.py b/tests/tests.py new file mode 100644 index 0000000..7b5ec03 --- /dev/null +++ b/tests/tests.py @@ -0,0 +1,27 @@ +''' +This file tests basic working of the implementation such as: + +- PersistentQueue +- Server protocol + +''' +import asyncio +import ../src/wqueue2 + +class TestFileQueue: + + def setup(self): + loop = asyncio.new_event_loop() + asyncio.set_event_loop(loop) + self.pq = PersistentQueue() + + def teardown(self): + asyncio.set_event_loop(None) + + def test_reload_from_filename(): + self.pq. + + + + def test_persistent_queue(): + pq = PersistentQueue() |