def test_transport_doesnt_write_with_emtpy_queue(self, device, loop):
        unit = AsyncioTransport(device, loop, callback=mock.Mock())

        # Call write and verify it was added to the queue
        unit.write_queue = []
        unit._writer()

        self.assertFalse(device.write.called)