def test_svn_1_2(self): |
output = """ |
Path: test_wccommand.py |
Name: test_wccommand.py |
URL: http://codespeak.net/svn/py/dist/py/path/svn/wccommand.py |
Repository UUID: fd0d7bf2-dfb6-0310-8d31-b7ecfe96aada |
Revision: 28137 |
Node Kind: file |
Schedule: normal |
Last Changed Author: jan |
Last Changed Rev: 27939 |
Last Changed Date: 2006-05-30 20:45:26 +0200 (Tue, 30 May 2006) |
Text Last Updated: 2006-06-01 00:42:53 +0200 (Thu, 01 Jun 2006) |
Properties Last Updated: 2006-05-23 11:54:59 +0200 (Tue, 23 May 2006) |
Checksum: 357e44880e5d80157cc5fbc3ce9822e3 |
""" |
-> path = py.magic.autopath().dirpath().chdir() |
info = InfoSvnWCCommand(output) |
path.chdir() |
assert info.last_author == 'jan' |
assert info.kind == 'file' |
assert info.mtime == 1149021926.0 |
assert info.url == 'http://codespeak.net/svn/py/dist/py/path/svn/wccommand.py' |
assert info.time == 1149021926000000.0 |
assert info.rev == 28137 |