Skip to content

Commit

Permalink
Enriched admin test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsoprea committed Oct 18, 2016
1 parent 6afab94 commit 09ddbda
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_admin.py
Expand Up @@ -3,8 +3,12 @@
import unittest
import tempfile
import shutil
import logging

import svn.admin
import svn.remote

_LOGGER = logging.getLogger(__name__)


class TestAdmin(unittest.TestCase):
Expand All @@ -24,9 +28,16 @@ def test_create_repository(self):
a = svn.admin.Admin()

try:
# Create.
a.create(temp_path)

# Do a read.
rc = svn.remote.RemoteClient('file://' + temp_path)
info = rc.info()
_LOGGER.debug("Info from new repository: [%s]", str(info))
finally:
try:
shutil.rmtree(temp_path)
except:
pass

0 comments on commit 09ddbda

Please sign in to comment.