~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Andrew Bennetts
  • Date: 2008-10-31 01:57:16 UTC
  • mto: This revision was merged to the branch mainline in revision 3814.
  • Revision ID: andrew.bennetts@canonical.com-20081031015716-xxizi0n4selzzrvr
Return ('ok',) rather than an error the autopack RPC is used on a non-pack repo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1611
1611
        expected_error = errors.DivergedBranches(branch, other_branch)
1612
1612
        self.assertEqual(expected_error, translated_error)
1613
1613
 
1614
 
    def test_NotPackRepository(self):
1615
 
        repository = self.make_repository('')
1616
 
        translated_error = self.translateTuple(
1617
 
            ('NotPackRepository',), repository=repository)
1618
 
        self.assertIsInstance(translated_error, errors.InternalBzrError)
1619
 
        self.assertContainsRe(
1620
 
            str(translated_error), 'is not a pack repository')
1621
1614
    def test_ReadError_no_args(self):
1622
1615
        path = 'a path'
1623
1616
        translated_error = self.translateTuple(('ReadError',), path=path)