Example #1
0
 def test_hub_detect_without_hub(self):
     os.putenv("PATH", TEST_DIR)
     self.assertFalse(summoner.detect_hub())
Example #2
0
 def test_hub_detect_with_hub(self):
     f = open(TEST_DIR + "/hub", "w")
     f.close()
     os.chmod(TEST_DIR + "/hub", 0777)
     os.putenv("PATH", TEST_DIR)
     self.assertTrue(summoner.detect_hub())