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)
def test_init_idempodency(self): inputa = getInput(0) init() inputb = getInput(0) self.assertIdentical(inputa, inputb)