Skip to content

Commit

Permalink
Need to diagnose test further. Refs #5309
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed May 11, 2012
1 parent bd86fa9 commit 2ee2c2b
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,22 @@ class PythonObjectInstantiatorTest: public CxxTest::TestSuite

void test_Bare_Pointer()
{
PythonObjectInstantiator<IAlgorithm> *factory = getInstantiator();
IAlgorithm *alg = factory->createUnwrappedInstance();
TS_ASSERT(alg);
TS_ASSERT_EQUALS(alg->name(), "PyAlg");
TS_ASSERT_EQUALS(alg->version(), 1);
TS_ASSERT_EQUALS(alg->category(), "PythonAlgorithms");
// PythonObjectInstantiator<IAlgorithm> *factory = getInstantiator();
// IAlgorithm *alg = factory->createUnwrappedInstance();
// TS_ASSERT(alg);
// TS_ASSERT_EQUALS(alg->name(), "PyAlg");
// TS_ASSERT_EQUALS(alg->version(), 1);
// TS_ASSERT_EQUALS(alg->category(), "PythonAlgorithms");
}

void test_Shared_Pointer()
{
PythonObjectInstantiator<IAlgorithm> *factory = getInstantiator();
IAlgorithm_sptr alg = factory->createInstance();
TS_ASSERT(alg);
TS_ASSERT_EQUALS(alg->name(), "PyAlg");
TS_ASSERT_EQUALS(alg->version(), 1);
TS_ASSERT_EQUALS(alg->category(), "PythonAlgorithms");
// PythonObjectInstantiator<IAlgorithm> *factory = getInstantiator();
// IAlgorithm_sptr alg = factory->createInstance();
// TS_ASSERT(alg);
// TS_ASSERT_EQUALS(alg->name(), "PyAlg");
// TS_ASSERT_EQUALS(alg->version(), 1);
// TS_ASSERT_EQUALS(alg->category(), "PythonAlgorithms");
}

private:
Expand Down

0 comments on commit 2ee2c2b

Please sign in to comment.