def testCanDescribeCommitSingleLine(self): commits = self._get_commits() hash_of_first_commit = commits[0] result = mergeinfo.describe_commit(self.base_dir, hash_of_first_commit, True).splitlines() self.assertEqual(str(result[0]), str(hash_of_first_commit[0:7]) + " Initial commit")
def testCanDescribeCommit(self): commits = self._get_commits() hash_of_first_commit = commits[0] result = mergeinfo.describe_commit(self.base_dir, hash_of_first_commit).splitlines() self.assertEqual(result[0], "commit " + hash_of_first_commit)
def testCanDescribeCommit(self): commits = self._get_commits() hash_of_first_commit = commits[0] result = mergeinfo.describe_commit(self.base_dir, hash_of_first_commit).splitlines() self.assertEqual(result[0], 'commit ' + hash_of_first_commit)
def testCanDescribeCommitSingleLine(self): commits = self._get_commits() hash_of_first_commit = commits[0] result = mergeinfo.describe_commit(self.base_dir, hash_of_first_commit, True).splitlines() self.assertEqual(str(result[0]), str(hash_of_first_commit[0:7]) + ' Initial commit')