-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import unittest | ||
|
||
from automon.log import logger | ||
|
||
log = logger.logging.getLogger(__name__) | ||
log.setLevel(logger.DEBUG) | ||
|
||
|
||
class LoggingTest(unittest.TestCase): | ||
|
||
def test_logger(self): | ||
self.assertTrue(log) | ||
|
||
def test_error(self): | ||
self.assertIsNone(log.error('test')) | ||
|
||
def test_debug(self): | ||
self.assertIsNone(log.debug('test')) | ||
|
||
def test_info(self): | ||
self.assertIsNone(log.info('test')) | ||
|
||
def test_critical(self): | ||
self.assertIsNone(log.critical('test')) | ||
|
||
def test_warn(self): | ||
self.assertIsNone(log.warning('test')) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |