Using Python 2.6, I have a very simple test in a python file in a directory:
#mytest.py
import unittest
class BasicTests(unittest.TestCase):
def test_ok
Update: it looks like what I have above is in fact, correct. When I installed a copy of Python 2.7, everything worked fine. I dug through the unittest.py source code and found that this line of code was not working the way one would expect:
elif isinstance(obj, TestSuite):
return obj
elif hasattr(obj, '__call__'):
test = obj()
The first elif condition is failing, and thus it falls down into the one after where the exception is raised. I'm still not sure how that could even remotely happen — maybe a bad compilation — but I've gone ahead and filed a bug with the provider.