Changeset 4c1f65d in trunk
- Timestamp:
- 2021-05-13T14:52:12Z (4 years ago)
- Branches:
- master
- Children:
- 1fa6ce9
- Parents:
- d06597f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/test/cli/test_put.py ¶
rd06597f r4c1f65d 487 487 488 488 return d 489 490 def test_no_leading_slash(self): 491 self.basedir = "cli/Put/leading_slash" 492 self.set_up_grid(oneshare=True) 493 494 DATA1 = b"data" * 100 495 fn1 = os.path.join(self.basedir, "DATA1") 496 497 d = self.do_cli("create-alias", "tahoe") 498 d.addCallback(lambda res: 499 self.do_cli("put", fn1, "tahoe:/uploaded.txt")) 500 def _check(args): 501 (rc, out, err) = args 502 self.assertEqual(rc, 1) 503 self.failUnlessIn("must not start with a slash", err) 504 self.assertEqual(len(out), 0, out) 505 d.addCallback(_check) 506 return d
Note: See TracChangeset
for help on using the changeset viewer.