1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
6
using IronPython.Hosting;
7
using IronPython.Modules;
8
using IronPython.Runtime;
9
using Microsoft.Scripting.Hosting;
10
using Microsoft.Scripting.Hosting.Providers;
11
using Microsoft.Scripting.Runtime;
12
using NUnit.Framework;
14
namespace PythonBinding.Tests.Completion
17
public class MathModuleMembersInPythonContextTestFixture
20
public void UnableToGetMathModuleFromBuiltinModuleDictionary()
22
ScriptEngine engine = Python.CreateEngine();
23
PythonContext context = HostingHelpers.GetLanguageContext(engine) as PythonContext;
25
object mathModuleFromBuiltinModuleDictionaryObject = null;
26
context.BuiltinModuleDict.TryGetValue("math", out mathModuleFromBuiltinModuleDictionaryObject);
27
Assert.IsNull(mathModuleFromBuiltinModuleDictionaryObject);