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