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 ICSharpCode.PythonBinding;
6
using ICSharpCode.SharpDevelop.Dom;
9
namespace PythonBinding.Tests.Parsing
12
public class ParseImportSysTestFixture
14
ICompilationUnit compilationUnit;
20
string python = "import sys";
22
DefaultProjectContent projectContent = new DefaultProjectContent();
23
PythonParser parser = new PythonParser();
24
compilationUnit = parser.Parse(projectContent, @"C:\test.py", python);
25
import = compilationUnit.UsingScope.Usings[0] as PythonImport;
29
public void PythonImportHasExitIdentifier()
31
Assert.AreEqual("sys", import.Module);