32
32
def test_cwd_log(self):
33
33
os.chdir(tempfile.mkdtemp())
34
34
out, err = self.run_bzr('log', retcode=3)
35
self.assertEqual(u'bzr: ERROR: Not a branch: %s/\n' % (getcwd(),),
35
self.assertEqual(u'bzr: ERROR: Not a branch: "%s/".\n' % (getcwd(),),
38
38
def test_url_log(self):
39
39
url = self.get_readonly_url() + 'subdir/'
40
40
out, err = self.run_bzr(['log', url], retcode=3)
41
41
self.assertEqual(u'bzr: ERROR: Not a branch:'
42
u' "%s".\n' % url, err)
44
44
def test_diff_ouside_tree(self):
45
45
os.chdir(tempfile.mkdtemp())
52
52
out, err = self.run_bzr('diff -r revno:2:branch2..revno:1', retcode=3)
53
53
self.assertEquals('', out)
54
self.assertEqual(u'bzr: ERROR: Not a branch: %s/\n' % (getcwd(),),
54
self.assertEqual(u'bzr: ERROR: Not a branch: "%s/".\n' % (getcwd(),),
57
57
out, err = self.run_bzr('diff -r revno:2:branch2', retcode=3)
58
58
self.assertEquals('', out)
59
self.assertEqual(u'bzr: ERROR: Not a branch: %s/\n' % (getcwd(),),
59
self.assertEqual(u'bzr: ERROR: Not a branch: "%s/".\n' % (getcwd(),),
62
62
out, err = self.run_bzr('diff -r revno:2:branch2..', retcode=3)
63
63
self.assertEquals('', out)
64
self.assertEqual(u'bzr: ERROR: Not a branch: %s/\n' % (getcwd(),),
64
self.assertEqual(u'bzr: ERROR: Not a branch: "%s/".\n' % (getcwd(),),
67
67
out, err = self.run_bzr('diff', retcode=3)
68
68
self.assertEquals('', out)
69
self.assertEqual(u'bzr: ERROR: Not a branch: %s/\n' % (getcwd(),),
69
self.assertEqual(u'bzr: ERROR: Not a branch: "%s/".\n' % (getcwd(),),