Extra test

This commit is contained in:
Simeon Warner 2016-03-28 09:14:40 -04:00
parent b5217b9eed
commit c9e64a2906

View File

@ -53,7 +53,10 @@ class TestClient(TestCase):
c.logger = logging.getLogger('resync.client')
self.assertRaises( ClientFatalError, c.update_resource, resource, filename )
# get from file uri
resource = Resource(uri='tests/testdata/examples_from_spec/resourcesync_ex_1.xml')
resource = Resource(uri='tests/testdata/examples_from_spec/resourcesync_ex_1.xml',
length=355, md5='abc',
timestamp=10)
c.last_timestamp = 0
with LogCapture() as lc:
c.logger = logging.getLogger('resync.client')
n = c.update_resource( resource, filename )