Esempio n. 1
0
 def test_IfItWriteCallableFunctionIsCalled(self):
     mock = Mock()
     argument = 0xc00fee
     port = Port(None, mock)
     port.write(argument)
     mock.assert_called_with(argument)
Esempio n. 2
0
 def test_IfItWriteCallableFunctionIsCalled(self):
     mock = Mock()
     argument = 0xc00fee
     port = Port(None, mock)
     port.write(argument)
     mock.assert_called_with(argument)