From a31740748bd213d8be1551abb2468d8428f62d51 Mon Sep 17 00:00:00 2001 From: Julius Mittenzwei Date: Fri, 23 Nov 2018 09:14:34 +0100 Subject: [PATCH] removed unused test --- old_api/test/exception_test.py | 41 ---------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 old_api/test/exception_test.py diff --git a/old_api/test/exception_test.py b/old_api/test/exception_test.py deleted file mode 100644 index 67d18b4e..00000000 --- a/old_api/test/exception_test.py +++ /dev/null @@ -1,41 +0,0 @@ -"""Unit test for roller shutter.""" - -import unittest -import asyncio - -from pyvlx import PyVLXException, InvalidToken - - -# pylint: disable=too-many-public-methods,invalid-name -class TestException(unittest.TestCase): - """Test class for roller shutter.""" - - def setUp(self): - """Set up test class.""" - self.loop = asyncio.new_event_loop() - asyncio.set_event_loop(self.loop) - - def tearDown(self): - """Tear down test class.""" - self.loop.close() - - def test_str(self): - """Test string representation of PyVLXException.""" - exception = PyVLXException("fnord fnord") - self.assertEqual( - str(exception), - '') - - def test_invalid_token(self): - """Test InvalidToken exception.""" - exception = InvalidToken(23) - self.assertEqual( - str(exception), - '') - self.assertEqual( - exception.error_code, - 23) - - -SUITE = unittest.TestLoader().loadTestsFromTestCase(TestException) -unittest.TextTestRunner(verbosity=2).run(SUITE)