def test_running_on_python_26(self): # Python 2.6 is the oldest version we support in the AppScale Tools, so # don't fail in this case. fake_sys = flexmock(name='fake_sys', version_info=[2, 6]) version_helper.ensure_valid_python_is_used(fake_sys)
# Policy Management Tool client libs # Programmer: junsheng([email protected]) # General-purpose Python library imports import os import sys import argparse import subprocess import yaml import re # Make sure we're on Python 2.6 or greater before importing any code # that's incompatible with older versions. import version_helper version_helper.ensure_valid_python_is_used() from eager_client import EagerClient from remote_helper import RemoteHelper from local_state import LocalState from appscale import AppScale class PolicyTools(): USAGE = """eager-policy command [options] [args]: Available commands: add add a new policy via file or reading content from std, options: remove remove an existing policy by name