Beispiel #1
0
 def test_convert_unknown_hostname(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("Unknown hostname 'bla'",
             subvertpy.ERR_UNKNOWN_HOSTNAME)), ConnectionError)
Beispiel #2
0
 def test_not_implemented(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("Remote server doesn't support ...",
             subvertpy.ERR_RA_NOT_IMPLEMENTED)), NotImplementedError)
Beispiel #3
0
 def test_convert_perm_denied(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("Permission Denied",
             subvertpy.ERR_RA_NOT_AUTHORIZED)), PermissionDenied)
Beispiel #4
0
 def test_convert_unexpected_end(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("Unexpected end of stream",
             subvertpy.ERR_INCOMPLETE_DATA)), UnexpectedEndOfContainerError)
Beispiel #5
0
 def test_convert_error_reset(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("Connection closed",
             subvertpy.ERR_RA_SVN_CONNECTION_CLOSED)), ConnectionReset)
Beispiel #6
0
 def test_convert_error_lock(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("Working copy locked",
             subvertpy.ERR_WC_LOCKED)), LockActive)
Beispiel #7
0
 def test_convert_malformed(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("foo",
             subvertpy.ERR_RA_SVN_MALFORMED_DATA)), TransportError)
Beispiel #8
0
 def test_convert_dav_request_failed(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("foo",
             subvertpy.ERR_RA_DAV_REQUEST_FAILED)), DavRequestFailed)
Beispiel #9
0
 def test_convert_error_unknown(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("foo", -4)),
         subvertpy.SubversionException)
Beispiel #10
0
 def test_hook_failed(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("Hook failed",
             subvertpy.ERR_REPOS_HOOK_FAILURE)), TipChangeRejected)
Beispiel #11
0
 def test_proppatch_failed(self):
     self.assertIsInstance(convert_error(
         subvertpy.SubversionException("Proppatch failed",
             subvertpy.ERR_RA_DAV_PROPPATCH_FAILED)), PropertyChangeFailed)