That's what I was doing originally, but we also support python 2.6, and although 2.6's unittest works for the most part it doesn't have support for things like expected failures or the ability to skip tests.

Did you mean something like:

```
if sys.version_info[:2] == (2,7):
    import unittest
else:
    import unittest2 as unittest
```
?