<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def CreateMock(self, class_to_mock):
 """Create a new mock object. Args: # class_to_mock: the class to be mocked class_to_mock: class Returns: MockObject that can be used as the class_to_mock would be. """


    new_mock = MockObject(class_to_mock)
    self._mock_objects.append(new_mock)
    return new_mock