1054
1054
SmartServerResponse(('yes',)), response)
1057
class TestSmartServerRepositorySetMakeWorkingTrees(tests.TestCaseWithMemoryTransport):
1059
def test_set_false(self):
1060
backing = self.get_transport()
1061
repo = self.make_repository('.', shared=True)
1062
repo.set_make_working_trees(True)
1063
request_class = smart.repository.SmartServerRepositorySetMakeWorkingTrees
1064
request = request_class(backing)
1065
self.assertEqual(SuccessfulSmartServerResponse(('ok',)),
1066
request.execute('', 'False'))
1067
repo = repo.bzrdir.open_repository()
1068
self.assertFalse(repo.make_working_trees())
1070
def test_set_true(self):
1071
backing = self.get_transport()
1072
repo = self.make_repository('.', shared=True)
1073
repo.set_make_working_trees(False)
1074
request_class = smart.repository.SmartServerRepositorySetMakeWorkingTrees
1075
request = request_class(backing)
1076
self.assertEqual(SuccessfulSmartServerResponse(('ok',)),
1077
request.execute('', 'True'))
1078
repo = repo.bzrdir.open_repository()
1079
self.assertTrue(repo.make_working_trees())
1057
1082
class TestSmartServerPackRepositoryAutopack(tests.TestCaseWithTransport):
1059
1084
def make_repo_needing_autopacking(self, path='.'):