62
65
self.assertEquals(self.capture('unknowns'), 'foo.blah\n')
63
66
self.runbzr('ignore *.blah')
64
67
self.assertEquals(self.capture('unknowns'), '')
67
70
# 'ignore' works when then .bzrignore file already exists
68
71
file('garh', 'wt').write('garh')
69
72
self.assertEquals(self.capture('unknowns'), 'garh\n')
70
73
self.runbzr('ignore garh')
71
74
self.assertEquals(self.capture('unknowns'), '')
74
77
def test_ignore_old_defaults(self):
75
78
out, err = self.run_bzr('ignore', '--old-default-rules')