def lock(self, **kwargs):
        self._state = STATE_LOCKED
        self.update_ha_state()
Test if it returns a simple users list.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/lock/demo.py/DemoLock.lock--crossover with--dataset/ETHPy150Open Pegase745/sqlalchemy-datatables/tests/test_datatables_legacy.py/DataTablesLegacyTest.test_list_users