'Test turn_off.'

def test_turn_off(self):

    self.switch.turn_off()
    self.assertEqual(self.port.control.call_count, 1)
    self.assertEqual(self.port.control.call_args, mock.call(False))
    self.assertFalse(self.switch._target_state)
