CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
SwitchProducerCUDA.TestSwitchProducerCUDA Class Reference
Inheritance diagram for SwitchProducerCUDA.TestSwitchProducerCUDA:

Public Member Functions

def testPickle
 

Detailed Description

Definition at line 24 of file SwitchProducerCUDA.py.

Member Function Documentation

def SwitchProducerCUDA.TestSwitchProducerCUDA.testPickle (   self)

Definition at line 25 of file SwitchProducerCUDA.py.

25 
26  def testPickle(self):
27  import pickle
28  sp = SwitchProducerCUDA(cpu = cms.EDProducer("Foo"), cuda = cms.EDProducer("Bar"))
29  pkl = pickle.dumps(sp)
30  unpkl = pickle.loads(pkl)
31  self.assertEqual(unpkl.cpu.type_(), "Foo")
32  self.assertEqual(unpkl.cuda.type_(), "Bar")
33 
unittest.main()