Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Unit test for verifying Python27 home path is correctly set.
  • Loading branch information
leomeuk committed Mar 13, 2016
commit e6294a77897ca00ab6e3d90e06f62b23a1adea68
32 changes: 32 additions & 0 deletions src/embed_tests/pysethome.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;
using System.Reflection;
using System.Collections.Generic;
using NUnit.Framework;
using Python.Runtime;


namespace Python.EmbeddingTest
{
public class PySetHomeSet
{
[SetUp]
public void SetUp()
{
}

[TearDown]
public void TearDown()
{
PythonEngine.Shutdown();
}

[Test]
public void TestSetHome()
{
string homePath = @"C:\Python27\";
PythonEngine.PythonHome = homePath;
PythonEngine.Initialize();
Assert.AreEqual(PythonEngine.PythonHome, homePath);
}
}
}