TestIsNamedTuple¶
-
class
tests.test_collections.
TestIsNamedTuple
(methodName='runTest')[source]¶ Test the function
is_namedtuple()
against various different types and objects to ensure it returnsTrue
orFalse
appropriately, with tests containing a mixture of bothcollections.namedtuple()
anddictable_namedtuple()
.-
__init__
(methodName='runTest') Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
Methods¶
Methods
Test |
|
(dictable_namedtuples) Test |
|
Test |
|
Test that classes and instances of classes are not namedtuple’s |
|
Test that dictionaries are not namedtuple’s |
|
Test that float’s are not namedtuple’s |
|
Test that int’s are not namedtuple’s |
|
Test that list’s are not namedtuple’s |
|
Test that tuple’s are not namedtuple’s |
|
Test |
|
(namedtuples) Test |