Exemple #1
0
 def test_unknown_mod(self):
     import_mod_by_name('notthenameofamodule')
Exemple #2
0
 def test_multiple_mods(self):
     eq_(import_mod_by_name('xml.dom'), xml.dom)
Exemple #3
0
 def test_mod_attr(self):
     eq_(import_mod_by_name('smtplib.SMTP'), smtplib.SMTP)
Exemple #4
0
 def test_multiple_attrs(self):
     eq_(import_mod_by_name('smtplib.SMTP.connect'),
         smtplib.SMTP.connect)
Exemple #5
0
 def test_single_mod(self):
     eq_(import_mod_by_name('smtplib'), smtplib)