()
| 194 | |
| 195 | |
| 196 | def test_insert_hash(): |
| 197 | a = MemoryStorage() |
| 198 | b = MemoryStorage() |
| 199 | status = {} |
| 200 | |
| 201 | item = Item('UID:1') |
| 202 | href, etag = a.upload(item) |
| 203 | sync(a, b, status) |
| 204 | |
| 205 | for d in status['1']: |
| 206 | del d['hash'] |
| 207 | |
| 208 | a.update(href, Item('UID:1\nHAHA:YES'), etag) |
| 209 | sync(a, b, status) |
| 210 | assert 'hash' in status['1'][0] and 'hash' in status['1'][1] |
| 211 | |
| 212 | |
| 213 | def test_already_synced(): |
nothing calls this directly
no test coverage detected