374
374
t.put_file, 'a', StringIO('some text for a\n'))
378
380
self.failUnless(t.has('a'))
379
381
self.check_transport_contents('some text for a\n', t, 'a')
380
382
# Put also replaces contents
382
385
self.check_transport_contents('new\ncontents for\na\n', t, 'a')
383
386
self.assertRaises(NoSuchFile,
384
387
t.put_file, 'path/doesnt/exist/c',