def assert_mocked_calls(self, tracked_only=False, commit=None):
self.git_modified_files.assert_called_once_with(<EOL>self.root, tracked_only=tracked_only, commit=commit)<EOL>self.git_modified_lines.assert_called_once_with(<EOL>self.filename, '<STR_LIT>', commit=commit)<EOL>self.lint.assert_called_once_with(self.filename, [<NUM_LIT:3>, <NUM_LIT>], mock.ANY)<EOL>
Checks if the mocks were called as expected.

        This method exists to avoid duplication.