MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / test_basic_copy

Method test_basic_copy

scripts/tests/test_copydocs.py:79–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 self.dest = FakeServer([])
78
79 def test_basic_copy(self):
80 copy(self.src, self.dest, ["/books/OL2M"], "asdf")
81 assert self.dest.get("/books/OL2M") == self.src.get("/books/OL2M")
82 assert len(self.dest.db) == 1
83
84 def test_default_get_gets_latest_version(self):
85 copy(self.src, self.dest, ["/works/OL1W"], "asdf")

Callers

nothing calls this directly

Calls 3

copyFunction · 0.85
lenFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected