Example #1
0
 def test_autoscale_not_enabled(self):
     del os.environ["AUTOSCALE_DASHBOARD_URL"]
     result = autoscale_enabled({})
     self.assertFalse(result["autoscale_enabled"])
Example #2
0
 def test_autoscale_enabled(self):
     os.environ["AUTOSCALE_DASHBOARD_URL"] = "http://localhost"
     result = autoscale_enabled({})
     self.assertTrue(result["autoscale_enabled"])