~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_conflicts.py

Remove all assert statements from test cases.

Tests should always be evaluated even when run with 'python -O', and so should
use TestCase.assert_ etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        self.assertEqual(len(list(tree.list_files())), 3)
37
37
        conflicts = list(tree.iter_conflicts())
38
38
        self.assertEqual(len(conflicts), 2)
39
 
        assert 'hello' in conflicts
40
 
        assert 'hello.sploo' in conflicts
 
39
        self.assert_('hello' in conflicts)
 
40
        self.assert_('hello.sploo' in conflicts)
41
41
        os.unlink('hello.BASE')
42
42
        os.unlink('hello.sploo.BASE')
43
43
        self.assertEqual(len(list(tree.iter_conflicts())), 0)