690
692
def test_lock_write_on_unlocked_repo(self):
691
693
backing = self.get_transport()
692
694
request = smart.repository.SmartServerRepositoryLockWrite(backing)
694
696
response = request.execute(backing.local_abspath(''))
695
697
nonce = repository.control_files._lock.peek().get('nonce')
696
698
self.assertEqual(SmartServerResponse(('ok', nonce)), response)