'Disabling an already imported module should produce a warning.'

def test_disableAlreadyImportedModule(self):

    self.assertIsInstance(self._checkSMTP(), types.ModuleType)
    self.assertWarns(RuntimeWarning, "Module    'smtplib'    already    imported,    disabling    anyway.", trial.__file__, self.config.parseOptions, ['--without-module', 'smtplib'])
    self.assertRaises(ImportError, self._checkSMTP)
