views:

33

answers:

0

I'm trying to run a selenium testcase in python. I have testcases that I can run directly from the command line no problem with python seleniumtest.py

However when I try to run it from within python it is failing.

__import__('seleniumtest')

seleniumtest.py ends with a command

unittest.main()

this command seems to fail when it gets run using the __import__ method. Does know why running this through the import is not working? For my purposes I cannot simply use popen.