~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

Add hpss call ``Repository.make_working_trees``

Show diffs side-by-side

added added

removed removed

Lines of Context:
2504
2504
        self.assertEqual(False, result)
2505
2505
 
2506
2506
 
 
2507
class TestRepositoryMakeWorkingTrees(TestRemoteRepository):
 
2508
 
 
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()
 
2515
        self.assertEqual(
 
2516
            [('call', 'Repository.make_working_trees', ('quack/',))],
 
2517
            client._calls)
 
2518
        self.assertEqual(True, result)
 
2519
 
 
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()
 
2526
        self.assertEqual(
 
2527
            [('call', 'Repository.make_working_trees', ('qwack/',))],
 
2528
            client._calls)
 
2529
        self.assertEqual(False, result)
 
2530
 
 
2531
 
2507
2532
class TestRepositoryLockWrite(TestRemoteRepository):
2508
2533
 
2509
2534
    def test_lock_write(self):