The assert should be different in my opinion. You should probably check that no ImportError is being raised.