~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_baz_import.py

  • Committer: Aaron Bentley
  • Date: 2007-12-01 16:36:25 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20071201163625-45bbqzo10kbde6ih
Remove switch test

Show diffs side-by-side

added added

removed removed

Lines of Context:
741
741
        command.run(os.path.join(self._tmpdir, 'output'), 'demo@DONOTUSE')
742
742
        self.failUnless(os.path.exists(os.path.join(self._tmpdir,'output')))
743
743
        walk_len = len(list(os.walk(os.path.join(self._tmpdir,'output'))))
744
 
        self.assertEqual(6, walk_len)
 
744
        self.assertEqual(9, walk_len)
745
745
 
746
746
    def test_two_branches(self):
747
747
        self.make_import('c--0')
754
754
        self.failUnless(os.path.exists(os.path.join(self._tmpdir,'output',
755
755
                                                    'c1', '0.2','branch')))
756
756
        default_format = repository.RepositoryFormat.get_default_format()
757
 
        if getattr(default_format, 'rich_root_data', False):
758
 
            num_files = 20
759
 
        else:
760
 
            num_files = 19
761
757
        walk_len = len(list(os.walk(os.path.join(self._tmpdir,'output'))))
762
 
        self.assertEqual(num_files, walk_len)
 
758
        self.assertEqual(22, walk_len)
763
759
 
764
760
    def test_run_twice(self):
765
761
        self.make_import('c--0')