There should be a way to make this fairly simple.  Off-hand, I'd suggest something like a <code>try: os_dep.command("getsebool"); except ValueError: pass; else: -all the unittest code-</code>.  That should make it ignore all the tests properly.  Maybe there's another easier way you can think of.  Just a suggestion.