MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / test_is_namedtuple

Method test_is_namedtuple

functional/test/test_util.py:20–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18
19class TestUtil(unittest.TestCase):
20 def test_is_namedtuple(self):
21 self.assertTrue(is_namedtuple(Data(1, 2)))
22 self.assertFalse(is_namedtuple((1, 2, 3)))
23 self.assertFalse(is_namedtuple([1, 2, 3]))
24 self.assertFalse(is_namedtuple(1))
25
26 # Skipping tests on pypy because of https://github.com/uqfoundation/dill/issues/73
27 @unittest.skipIf(

Callers

nothing calls this directly

Calls 1

is_namedtupleFunction · 0.90

Tested by

no test coverage detected