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

Method test_rm

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

Source from the content-addressed store, hash-verified

244 self.assertTrue(result is not None and "anaconda3" in result[1])
245
246 def test_rm(self):
247 localfile = "./../TestFiles/testRM.txt"
248
249 testfile = open(localfile, "w")
250 testfile.write("some text")
251 testfile.close()
252
253 src = [localfile]
254 dest = "data://.my/moredata/"
255 CLI().cp(src, dest, self.client)
256
257 result1 = CLI().ls(dest, self.client)
258
259 CLI().rm("data://.my/moredata/testRM.txt", self.client)
260
261 result2 = CLI().ls(dest, self.client)
262
263 self.assertTrue("testRM.txt" in result1 and "testRM.txt" not in result2)
264
265 def test_get_template(self):
266 filename = "./../temptest"

Callers

nothing calls this directly

Calls 4

CLIClass · 0.90
cpMethod · 0.80
lsMethod · 0.80
rmMethod · 0.80

Tested by

no test coverage detected