summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-04 18:50:07 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-04 18:50:07 (GMT)
commitb9fe3a839e9212b809d64c11bf92b703adb18fb2 (patch)
tree86a1c42f305265372bb4d697dad9c99f2ea3715a /tests/core
parent0b2cada60941d109bde2f54a198f4c3a799e0606 (diff)
Updated the test suite for the current API.
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/logs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/core/logs.py b/tests/core/logs.py
index 96be519..69a4775 100644
--- a/tests/core/logs.py
+++ b/tests/core/logs.py
@@ -6,16 +6,16 @@
from chrysacase import ChrysalideTestCase
-from pychrysalide.core import logs
+from pychrysalide import core
class TestCoreLogs(ChrysalideTestCase):
- """TestCase for analysis.core.logs."""
+ """TestCase for analysis.core.core."""
def testDefaultLevel(self):
"""Ensure all messages are hidden by default."""
- self.assertEqual(logs.get_verbosity(), logs.LMT_COUNT)
+ self.assertEqual(core.get_verbosity(), core.LMT_COUNT)
def testWrongLevel(self):
@@ -23,7 +23,7 @@ class TestCoreLogs(ChrysalideTestCase):
with self.assertRaisesRegex(Exception, 'argument 1 must be int, not str'):
- logs.set_verbosity('XXX')
+ core.set_verbosity('XXX')
def testWrongMessage(self):
@@ -31,4 +31,4 @@ class TestCoreLogs(ChrysalideTestCase):
with self.assertRaisesRegex(Exception, 'Invalid type of message'):
- logs.log_message(logs.LMT_COUNT, 'Message')
+ core.log_message(core.LMT_COUNT, 'Message')