/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

Merge from bzr.ab.integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
449
449
        self.failUnless(isinstance(t2, HttpTransport))
450
450
        self.assertEqual(t2.base[:-1], t.abspath('foo/bar'))
451
451
 
 
452
    def test_is_directory(self):
 
453
        """Test assertIsDirectory assertion"""
 
454
        t = self.get_transport()
 
455
        self.build_tree(['a_dir/', 'a_file'], transport=t)
 
456
        self.assertIsDirectory('a_dir', t)
 
457
        self.assertRaises(AssertionError, self.assertIsDirectory, 'a_file', t)
 
458
        self.assertRaises(AssertionError, self.assertIsDirectory, 'not_here', t)
452
459
 
453
460
class TestChrootedTest(ChrootedTestCase):
454
461