/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 tests/test_dir.py

Support 'add' in empty directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        self.assertRaises(errors.NoWorkingTree, gd.open_workingtree)
55
55
 
56
56
 
57
 
class TestGitDirFormat(tests.TestCaseInTempDir):
58
 
 
59
 
    _test_needs_features = [tests.GitCommandFeature]
 
57
class TestGitDirFormat(tests.TestCase):
60
58
 
61
59
    def setUp(self):
62
60
        super(TestGitDirFormat, self).setUp()
66
64
        self.assertEquals("Local Git Repository",
67
65
                          self.format.get_format_description())
68
66
 
 
67
    def test_eq(self):
 
68
        format2 = dir.LocalGitBzrDirFormat()
 
69
        self.assertEquals(self.format, format2)
 
70
        self.assertEquals(self.format, self.format)
 
71
        bzr_format = bzrdir.format_registry.make_bzrdir("default")
 
72
        self.assertNotEquals(self.format, bzr_format)
 
73