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

Member Function Documentation

◆ testPickle()

def SwitchProducerCUDA.TestSwitchProducerCUDA.testPickle (   self)

Definition at line 25 of file SwitchProducerCUDA.py.

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