Exemple #1
0
 def test_do_not_ignore_branches_by_default(self):
     """ Test that branches are not ignored by default. """
     self.assertFalse(VersionControlSystem._ignore_branch('foo'))
Exemple #2
0
 def test_ignore_branch_in_ignore_list(self):
     """ Test that branches in the list of branches to ignore are ignored. """
     self.assertTrue(VersionControlSystem._ignore_branch('foo', list_of_branches_to_ignore=['foo']))
Exemple #3
0
 def test_ignore_branch_that_matches(self):
     """ Test that branches that match the regular expression of branches to ignore are ignored. """
     self.assertTrue(VersionControlSystem._ignore_branch('foobar', re_of_branches_to_ignore='foo.*'))
Exemple #4
0
 def test_ignore_branch_not_in_includes(self):
     """ Test that branches not in the list of branches to include are ignored. """
     self.assertTrue(VersionControlSystem._ignore_branch('foo', list_of_branches_to_include=['bar']))