~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

(jelmer) Add ``Repository.add_signature_text`` HPSS call. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2356
2356
        self.assertNotEqual(graph._parents_provider, repo)
2357
2357
 
2358
2358
 
 
2359
class TestRepositoryAddSignatureText(TestRemoteRepository):
 
2360
 
 
2361
    def test_add_signature_text(self):
 
2362
        transport_path = 'quack'
 
2363
        repo, client = self.setup_fake_client_and_repository(transport_path)
 
2364
        client.add_success_response('ok')
 
2365
        self.assertIs(None,
 
2366
            repo.add_signature_text("rev1", "every bloody emperor"))
 
2367
        self.assertEqual(
 
2368
            [('call_with_body_bytes',
 
2369
              'Repository.add_signature_text', ('quack/', 'rev1', ),
 
2370
              'every bloody emperor')],
 
2371
            client._calls)
 
2372
 
 
2373
 
2359
2374
class TestRepositoryGetParentMap(TestRemoteRepository):
2360
2375
 
2361
2376
    def test_get_parent_map_caching(self):