Example #1
0
 def test_git_utils_on_trunk(self):
     self.checkout('trunk')
     # before gitification, the branch name is None
     self.assertEqual(git_branch(), None)
     # after gitifcation we expect 'local/trunk' (as per convention)
     gitify(args=['init'])
     self.assertEqual(git_branch(), 'local/trunk')
Example #2
0
 def test_git_utils_on_branch(self):
     self.checkout('branches/feature-bar')
     gitify(args=['init'])
     self.assertEqual(git_branch(), 'local/feature-bar')