2504
2504
self.assertEqual(False, result)
2507
class TestRepositoryMakeWorkingTrees(TestRemoteRepository):
2509
def test_make_working_trees(self):
2510
# ('yes', ) for Repository.make_working_trees -> 'True'.
2511
transport_path = 'quack'
2512
repo, client = self.setup_fake_client_and_repository(transport_path)
2513
client.add_success_response('yes')
2514
result = repo.make_working_trees()
2516
[('call', 'Repository.make_working_trees', ('quack/',))],
2518
self.assertEqual(True, result)
2520
def test_no_working_trees(self):
2521
# ('no', ) for Repository.make_working_trees -> 'False'.
2522
transport_path = 'qwack'
2523
repo, client = self.setup_fake_client_and_repository(transport_path)
2524
client.add_success_response('no')
2525
result = repo.make_working_trees()
2527
[('call', 'Repository.make_working_trees', ('qwack/',))],
2529
self.assertEqual(False, result)
2507
2532
class TestRepositoryLockWrite(TestRemoteRepository):
2509
2534
def test_lock_write(self):