()
| 72 | |
| 73 | |
| 74 | def test_read_only_and_prefetch(): |
| 75 | a = MemoryStorage() |
| 76 | b = MemoryStorage() |
| 77 | b.read_only = True |
| 78 | |
| 79 | status = {} |
| 80 | item1 = Item('UID:1\nhaha') |
| 81 | item2 = Item('UID:2\nhoho') |
| 82 | a.upload(item1) |
| 83 | a.upload(item2) |
| 84 | |
| 85 | sync(a, b, status, force_delete=True) |
| 86 | sync(a, b, status, force_delete=True) |
| 87 | |
| 88 | assert not items(a) and not items(b) |
| 89 | |
| 90 | |
| 91 | def test_partial_sync_error(): |
nothing calls this directly
no test coverage detected