Changeset 1263 in tailor


Ignore:
Timestamp:
08/24/06 18:25:16 (7 years ago)
Author:
Adeodato Simo <dato@…>
Hash name:
20060824162516-d6905-a483de2ff518ef5124ed513eb6332507cca0d6bc
Message:

Add a test case for ticket #74.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tests/fixed_bugs.py

    r1262 r1263  
    100100        ] 
    101101        self.run_tailor() 
     102 
     103    def testTicket74(self): 
     104        """Files must be physically removed on dir removal, so they don't get readded""" 
     105        self.TARGET_VCS = [ 'svn' ] # FAIL: bzr for sure, probably others 
     106        self.CHANGESETS = [ 
     107            Changeset("Add dir/a{1,2,3}", 
     108                [ Entry(Entry.ADDED, 'dir/'), 
     109                  Entry(Entry.ADDED, 'dir/a1'), 
     110                  Entry(Entry.ADDED, 'dir/a2'), 
     111                  Entry(Entry.ADDED, 'dir/a3'), 
     112                ]), 
     113            Changeset("rm dir", 
     114                [ Entry(Entry.DELETED, 'dir/'), ]), 
     115            Changeset("Add dir/z{1,2,3}", 
     116                [ Entry(Entry.ADDED, 'dir/'), 
     117                  Entry(Entry.ADDED, 'dir/z1'), 
     118                  Entry(Entry.ADDED, 'dir/z2'), 
     119                  Entry(Entry.ADDED, 'dir/z3'), 
     120                ]), 
     121        ] 
     122        def assert_function(project, vcs): 
     123            repository = project.workingDir().target.repository 
     124            tree = join(repository.rootdir, repository.subdir) 
     125            for file in ('a1', 'a2', 'a3'): 
     126                self.failIf(exists(join(tree, 'dir', file))) 
     127 
     128        self.run_tailor(assert_function) 
Note: See TracChangeset for help on using the changeset viewer.