def test_unlocking(self):
        lock.unlock(self.hass, FRONT)
        self.hass.pool.block_till_done()

        self.assertFalse(lock.is_locked(self.hass, FRONT))
Client calls abortConnection(), followed by loseConnection().
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/lock/test_demo.py/TestLockDemo.test_unlocking--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/test/test_tcp.py/AbortConnectionMixin.test_clientAbortsConnectionThenLosesConnection