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 19 of file SwitchProducerCUDA.py.

Member Function Documentation

def SwitchProducerCUDA.TestSwitchProducerCUDA.testPickle (   self)

Definition at line 20 of file SwitchProducerCUDA.py.

20 
21  def testPickle(self):
22  import pickle
23  sp = SwitchProducerCUDA(cpu = cms.EDProducer("Foo"), cuda = cms.EDProducer("Bar"))
24  pkl = pickle.dumps(sp)
25  unpkl = pickle.loads(pkl)
26  self.assertEqual(unpkl.cpu.type_(), "Foo")
27  self.assertEqual(unpkl.cuda.type_(), "Bar")
28 
unittest.main()