In my code I have:
try:
import json
except ImportError:
import simplejson as json
Coverage says that the ImportError
isn' tested. How do I go about writing a proper unittest to test this particular failure?
In my code I have:
try:
import json
except ImportError:
import simplejson as json
Coverage says that the ImportError
isn' tested. How do I go about writing a proper unittest to test this particular failure?