Ejemplo n.º 1
0
 def test_locate_sdk_path(self):
   with distribution() as sdk:
     with self.env(ANDROID_HOME=sdk):
       dist = AndroidDistribution.locate_sdk_path()
       self.assertEquals(dist._sdk_path, sdk)
Ejemplo n.º 2
0
 def test_locate_alternative_variables(self):
   # Test that alternative environmental variables are accepted.
   with distribution() as sdk:
     with self.env(ANDROID_SDK=sdk):
       dist = AndroidDistribution.locate_sdk_path()
       self.assertEquals(dist._sdk_path, sdk)
Ejemplo n.º 3
0
 def test_locate_no_sdk_on_path(self):
   with distribution() as sdk:
     with self.env(ANDROooooD_HOME=sdk):
       with self.assertRaises(AndroidDistribution.DistributionError):
         AndroidDistribution.locate_sdk_path()