def test_placement(self):
     """Test our simple placement function."""
     self.assertEqual(placement.placement("some_app_id"),
                      taskconfig.APPSERVERS)
def select_app_server_for_deployment(zoomdb, opts):
    opts["PLACEMENT"] = placement.placement(opts["APP_ID"])
    if not len(opts["PLACEMENT"]):
        raise utils.InfrastructureException(
            "Could not find any available appservers for hosting " +
            "your project.")