def test_fromimportsingle(self):
     from regressions.fixtures.mod2 import proof
     from regressions.fixtures.mod2 import proofMod2
     self.assertEqual(proof(), "MOD2")
     self.assertEqual(proofMod2(), "MOD2")
     self.assert_('regressions.fixtures.mod2' in sys.modules,
                  "sys.modules not extended")
 def test_importstar(self):
     from regressions.fixtures.mod3 import *
     #Make sure mod3 works from this scope
     self.assert_('regressions.fixtures.mod3' in sys.modules,
                  "sys.modules not extended")
     self.assertEquals(proof(), "MOD3", "Rowan Work Item 224943")
     self.assertEquals(proofMod3(), "MOD3", "Rowan Work Item 224943")
 def test_fromimportmany(self):
     from regressions.fixtures.mod1 import proof, proofMod1
     self.assertEqual(proof(), "MOD1")
     self.assertEqual(proofMod1(), "MOD1")
Example #4
0
 def test_fromimportmany(self):
     from regressions.fixtures.mod1 import proof, proofMod1
     self.assertEqual(proof(), "MOD1")
     self.assertEqual(proofMod1(), "MOD1")
Example #5
0
 def test_fromimportsingle(self):
     from regressions.fixtures.mod2 import proof
     from regressions.fixtures.mod2 import proofMod2
     self.assertEqual(proof(), "MOD2")
     self.assertEqual(proofMod2(), "MOD2")
     self.assert_('regressions.fixtures.mod2' in sys.modules, "sys.modules not extended")
Example #6
0
 def test_importstar(self):
     from regressions.fixtures.mod3 import *
     #Make sure mod3 works from this scope
     self.assert_('regressions.fixtures.mod3' in sys.modules, "sys.modules not extended")
     self.assertEquals(proof(), "MOD3", "Rowan Work Item 224943")
     self.assertEquals(proofMod3(), "MOD3", "Rowan Work Item 224943")