CMS 3D CMS Logo

List of all members | Public Member Functions
SwitchProducerCUDA.TestSwitchProducerCUDA Class Reference
Inheritance diagram for SwitchProducerCUDA.TestSwitchProducerCUDA:

Public Member Functions

def testPickle (self)
 

Detailed Description

Definition at line 19 of file SwitchProducerCUDA.py.

Member Function Documentation

◆ testPickle()

def SwitchProducerCUDA.TestSwitchProducerCUDA.testPickle (   self)

Definition at line 20 of file SwitchProducerCUDA.py.

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