def METHOD_NAME(self, mock_client):
    """Check if it creates a new enrollment"""
    responses = [
        {'data': {'enroll': {'uuid': '322397ed782a798ffd9d0bc7e293df4292fe075d'}}}
    ]
    client = MockClient(responses)
    mock_client.return_value = client
    runner = click.testing.CliRunner()
    # Create a new enrollment
    params = [
        '322397ed782a798ffd9d0bc7e293df4292fe075d',
        'Example',
        '--from-date', '2012-01-01',
        '--to-date', '2013-01-01',
    ]
    result = runner.invoke(enroll, params)
    expected = ENROLL_CMD_OP.format('322397ed782a798ffd9d0bc7e293df4292fe075d',
                                    'Example',
                                    '2012-01-01T00:00:00+00:00',
                                    '2013-01-01T00:00:00+00:00',
                                    'false')
    self.assertEqual(len(client.ops), 1)
    self.assertEqual(str(client.ops[0]), expected)
    self.assertEqual(result.exit_code, 0)