Example #1
0
 def test_getInput(self):
     self._check_inputs()
     # get by name
     entry = PypmWrapper.inputNames.items()[0]
     inputa = getInput(entry[1])
     # get by device no
     inputb = getInput(entry[0])
     self.assert_(inputa)
     self.assertIdentical(inputa, inputb)
Example #2
0
 def test_getInput(self):
     self._check_inputs()
     # get by name
     entry = PypmWrapper.inputNames.items()[0]
     inputa = getInput(entry[1])
     # get by device no
     inputb = getInput(entry[0])
     self.assert_(inputa)
     self.assertIdentical(inputa, inputb)
Example #3
0
 def test_init_idempodency(self):
     inputa = getInput(0)
     init()
     inputb = getInput(0)
     self.assertIdentical(inputa, inputb)
Example #4
0
 def test_init_idempodency(self):
     inputa = getInput(0)
     init()
     inputb = getInput(0)
     self.assertIdentical(inputa, inputb)