| 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" |