def test_get_notes_with_commit(self): test_note = 'test note' git_executor = MockGitExecutor('notes --ref=test-ref show notes_commit1',[test_note]) git_utils = GitUtils(git_executor) retrieved_note = git_utils.get_notes('test-ref', 'notes_commit1') self.assertEqual(test_note, retrieved_note)