Innovenergy_trunk/NodeRed/NodeRedFiles/pika-0.13.1/tests/unit/utils_tests.py

12 lines
264 B
Python

import unittest
from pika import utils
class UtilsTests(unittest.TestCase):
def test_is_callable_true(self):
self.assertTrue(utils.is_callable(utils.is_callable))
def test_is_callable_false(self):
self.assertFalse(utils.is_callable(1))