'Test if lock is locked.'

def test_is_locked(self):

    self.assertTrue(lock.is_locked(self.hass, FRONT))
    self.hass.states.is_state(FRONT, 'locked')
    self.assertFalse(lock.is_locked(self.hass, KITCHEN))
    self.hass.states.is_state(KITCHEN, 'unlocked')
