~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

merge hpss

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
            self.assertEqual(4, len(unicode_string))
49
49
            byte_string = unicode_string.encode('utf-8')
50
50
            self.assertEqual(6, len(byte_string))
51
 
            self.assertRaises(UnicodeEncodeError, self.lockable.put, 'foo', 
 
51
            self.assertRaises(UnicodeEncodeError, self.lockable.put, 'foo',
52
52
                              StringIO(unicode_string))
53
53
            self.lockable.put('foo', StringIO(byte_string))
54
54
            self.assertEqual(byte_string,
371
371
        # getting a new lockable involves opening a new instance of the branch
372
372
        branch = bzrlib.branch.Branch.open(self.get_url('foo'))
373
373
        return branch.control_files
374
 
 
375
 
    def test_lock_write_returns_None_refuses_token(self):
376
 
        # this test is not relevant for RemoteBranchLockableFiles as remote
377
 
        # locks are done directly from the remote branch object.
378
 
        return None
379
 
 
380
 
    def test_lock_write_raises_on_token_mismatch(self):
381
 
        # See test_lock_write_returns_None_refuses_token.
382
 
        return None
383
 
 
384
 
    def test_lock_write_with_matching_token(self):
385
 
        # See test_lock_write_returns_None_refuses_token.
386
 
        return None
387
 
 
388
 
    def test_unlock_after_lock_write_with_token(self):
389
 
        # See test_lock_write_returns_None_refuses_token.
390
 
        return None
391
 
 
392
 
    def test_lock_write_with_token_fails_when_unlocked(self):
393
 
        # See test_lock_write_returns_None_refuses_token.
394
 
        return None
395
 
 
396
 
    def test_lock_write_reenter_with_token(self):
397
 
        # See test_lock_write_returns_None_refuses_token.
398
 
        return None
399
 
 
400
 
    def test_leave_in_place(self):
401
 
        # See test_lock_write_returns_None_refuses_token.
402
 
        return None
403
 
 
404
 
    def test_dont_leave_in_place(self):
405
 
        # See test_lock_write_returns_None_refuses_token.
406
 
        return None
407
 
 
408
 
    def test_lock_write_returns_token_when_given_token(self):
409
 
        # See test_lock_write_returns_None_refuses_token.
410
 
        return None