2007-01-24 22:24:01 +08:00
|
|
|
import sys
|
|
|
|
import py
|
2009-11-05 04:34:07 +08:00
|
|
|
from py.impl.path import svnwc as svncommon
|
2009-09-06 22:59:39 +08:00
|
|
|
from testing.path.common import CommonFSTests
|
2007-01-24 22:24:01 +08:00
|
|
|
|
|
|
|
class CommonSvnTests(CommonFSTests):
|
|
|
|
|
2009-09-01 01:51:25 +08:00
|
|
|
def test_propget(self, path1):
|
|
|
|
url = path1.join("samplefile")
|
2007-01-24 22:24:01 +08:00
|
|
|
value = url.propget('svn:eol-style')
|
|
|
|
assert value == 'native'
|
|
|
|
|
2009-09-01 01:51:25 +08:00
|
|
|
def test_proplist(self, path1):
|
|
|
|
url = path1.join("samplefile")
|
2007-01-24 22:24:01 +08:00
|
|
|
res = url.proplist()
|
|
|
|
assert res['svn:eol-style'] == 'native'
|
|
|
|
|
2009-09-01 01:51:25 +08:00
|
|
|
def test_info(self, path1):
|
|
|
|
url = path1.join("samplefile")
|
2007-01-24 22:24:01 +08:00
|
|
|
res = url.info()
|
|
|
|
assert res.size > len("samplefile") and res.created_rev >= 0
|
|
|
|
|
2009-09-01 01:51:25 +08:00
|
|
|
def test_log_simple(self, path1):
|
|
|
|
url = path1.join("samplefile")
|
2007-01-29 00:56:42 +08:00
|
|
|
logentries = url.log()
|
|
|
|
for logentry in logentries:
|
|
|
|
assert logentry.rev == 1
|
|
|
|
assert hasattr(logentry, 'author')
|
|
|
|
assert hasattr(logentry, 'date')
|
2007-01-24 22:24:01 +08:00
|
|
|
|
|
|
|
#cache.repositories.put(svnrepourl, 1200, 0)
|