示例#1
0
 def test_env_location(self):
     env = Environment()
     env.setLocation(Location('virtual'))
     with self.assertRaises(ValueError):
         env.setLocation('foobar')
示例#2
0
 def test_env_location(self):
     env = Environment()
     env.setLocation(Location('virtual'))
     with self.assertRaises(ValueError):
         env.setLocation('foobar')