MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / test_cp_L2R

Method test_cp_L2R

Test/regular/CLI_test.py:158–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

156
157 # local to remote
158 def test_cp_L2R(self):
159 localfile = "./../TestFiles/test.txt"
160 testfile = open(localfile, "w")
161 testfile.write("some text")
162 testfile.close()
163
164 src = [localfile]
165 dest = "data://.my/moredata/test.txt"
166 CLI().cp(src, dest, self.client)
167
168 result = CLI().ls("data://.my/moredata/", self.client)
169 self.assertTrue("test.txt" in result)
170
171 # remote to remote
172 def test_cp_R2R(self):

Callers

nothing calls this directly

Calls 3

CLIClass · 0.90
cpMethod · 0.80
lsMethod · 0.80

Tested by

no test coverage detected