27
27
def test_mkdir(self):
28
28
tree = self.make_branch_and_tree('.')
29
29
self.run_bzr(['mkdir', 'somedir'])
30
self.assertEquals(tree.kind(tree.path2id('somedir')), "directory")
30
self.assertEqual(tree.kind(tree.path2id('somedir')), "directory")
32
32
def test_mkdir_multi(self):
33
33
tree = self.make_branch_and_tree('.')
34
34
self.run_bzr(['mkdir', 'somedir', 'anotherdir'])
35
self.assertEquals(tree.kind(tree.path2id('somedir')), "directory")
36
self.assertEquals(tree.kind(tree.path2id('anotherdir')), "directory")
35
self.assertEqual(tree.kind(tree.path2id('somedir')), "directory")
36
self.assertEqual(tree.kind(tree.path2id('anotherdir')), "directory")
38
38
def test_mkdir_parents(self):
39
39
tree = self.make_branch_and_tree('.')
40
40
self.run_bzr(['mkdir', '-p', 'somedir/foo'])
41
self.assertEquals(tree.kind(tree.path2id('somedir/foo')), "directory")
41
self.assertEqual(tree.kind(tree.path2id('somedir/foo')), "directory")
43
43
def test_mkdir_parents_existing_versioned_dir(self):
44
44
tree = self.make_branch_and_tree('.')
45
45
tree.mkdir('somedir')
46
self.assertEquals(tree.kind(tree.path2id('somedir')), "directory")
46
self.assertEqual(tree.kind(tree.path2id('somedir')), "directory")
47
47
self.run_bzr(['mkdir', '-p', 'somedir'])
49
49
def test_mkdir_parents_existing_unversioned_dir(self):
50
50
tree = self.make_branch_and_tree('.')
51
51
os.mkdir('somedir')
52
52
self.run_bzr(['mkdir', '-p', 'somedir'])
53
self.assertEquals(tree.kind(tree.path2id('somedir')), "directory")
53
self.assertEqual(tree.kind(tree.path2id('somedir')), "directory")
55
55
def test_mkdir_parents_with_unversioned_parent(self):
56
56
tree = self.make_branch_and_tree('.')
57
57
os.mkdir('somedir')
58
58
self.run_bzr(['mkdir', '-p', 'somedir/foo'])
59
self.assertEquals(tree.kind(tree.path2id('somedir/foo')), "directory")
59
self.assertEqual(tree.kind(tree.path2id('somedir/foo')), "directory")