The original testcase already takes care of this.

This commit is contained in:
Markus Unterwaditzer 2015-01-01 13:05:39 +01:00
parent 6c0223f048
commit e21a197006
2 changed files with 0 additions and 28 deletions

View file

@ -81,17 +81,3 @@ class TestHttpStorage(StorageTests):
return {'url': 'http://localhost:123/collection.txt',
'path': self.tmpfile}
return inner
def test_update(self, s, get_item):
'''The original testcase tries to fetch with the old href. But this
storage doesn't have real hrefs, so the href might change if the
underlying UID changes. '''
item = get_item()
href, etag = s.upload(item)
assert_item_equals(s.get(href)[0], item)
new_item = get_item()
s.update(href, new_item, etag)
((new_href, new_etag),) = s.list()
assert_item_equals(s.get(new_href)[0], new_item)

View file

@ -45,17 +45,3 @@ class TestSingleFileStorage(StorageTests):
with pytest.raises(IOError):
s = self.storage_class(str(tmpdir) + '/foo.ics', create=False)
def test_update(self, s, get_item):
'''The original testcase tries to fetch with the old href. But this
storage doesn't have real hrefs, so the href might change if the
underlying UID changes. '''
item = get_item()
href, etag = s.upload(item)
assert_item_equals(s.get(href)[0], item)
new_item = get_item()
s.update(href, new_item, etag)
((new_href, new_etag),) = s.list()
assert_item_equals(s.get(new_href)[0], new_item)