# Path: spec/python/db_connection.py
# TEST_DATABASE_MYSQL = 'samapper_test'
# TEST_DATABASE_SQLITE = '/tmp/sam_test.db'
# class Mocker(object):
# class Session(dict):
# class env(object):
#     def __init__(self, *args, **kwargs):
#     def __getitem__(self, k):
#     def __setitem__(self, k, v):
#     def __getattr__(self, name):
#         def receiver(*args, **kwargs):
#     def __call__(self, *args, **kwargs):
#     def clear(self):
#     def was_called(self, name, *args, **kwargs):
#     def kill(self):
#     def __init__(self, mock_input=False, login_active=None, mock_session=False, mock_render=False, lang='en'):
#     def __enter__(self):
#     def __exit__(self, type, value, traceback):
# def make_timestamp(timestring):
# def unix_timestamp_to_datetime(stamp):
# def get_test_db_connection():
# def setup_datasources(db, sub_id):
# def template_sql(path, *args):
# def setup_network(db, sub_id, ds_id):
# def setup_node_extras(sub_id):
# 
# Path: sam/models/security/rule_template.py
# def get_all():
# def abs_rule_path(path):
# def get_definition(path, cache={}):
#     def __init__(self, path, yml):
#     def import_yml(self, data):
#     def load_exposed(yml):
#     def load_inclusions(self, yml):
#     def load_action_defaults(yml):
#     def get_exposed(self):
#     def get_action_defaults(self):
#     def get_inclusions(self):
# class RuleTemplate(object):
# 
# Path: sam/constants.py
# LDAP = {
#     'connection_string': config.get('LDAP', 'connection_string', default='')
# }
# def enable_local_mode():
# def init_urls():
# def find_url(target):
# def get_navbar(lang):


import os
import re
import yaml
    import pprint
from spec.python import db_connection
from sam.models.security import rule, rule_template
from sam import constants

db = db_connection.db
sub_id = db_connection.default_sub
ds_full = db_connection.dsid_default


def get_dummy_rule():
    base_path = os.path.dirname(__file__)

# Path: spec/python/db_connection.py
# TEST_DATABASE_MYSQL = 'samapper_test'
# TEST_DATABASE_SQLITE = '/tmp/sam_test.db'
# class Mocker(object):
# class Session(dict):
# class env(object):
#     def __init__(self, *args, **kwargs):
#     def __getitem__(self, k):
#     def __setitem__(self, k, v):
#     def __getattr__(self, name):
#         def receiver(*args, **kwargs):
#     def __call__(self, *args, **kwargs):
#     def clear(self):
#     def was_called(self, name, *args, **kwargs):
#     def kill(self):
#     def __init__(self, mock_input=False, login_active=None, mock_session=False, mock_render=False, lang='en'):
#     def __enter__(self):
#     def __exit__(self, type, value, traceback):
# def make_timestamp(timestring):
# def unix_timestamp_to_datetime(stamp):
# def get_test_db_connection():
# def setup_datasources(db, sub_id):
# def template_sql(path, *args):
# def setup_network(db, sub_id, ds_id):
# def setup_node_extras(sub_id):
# 
# Path: sam/models/security/rule_template.py
# def get_all():
# def abs_rule_path(path):
# def get_definition(path, cache={}):
#     def __init__(self, path, yml):
#     def import_yml(self, data):
#     def load_exposed(yml):
#     def load_inclusions(self, yml):
#     def load_action_defaults(yml):
#     def get_exposed(self):
#     def get_action_defaults(self):
#     def get_inclusions(self):
# class RuleTemplate(object):
# 
# Path: sam/constants.py
# LDAP = {
#     'connection_string': config.get('LDAP', 'connection_string', default='')
# }
# def enable_local_mode():
# def init_urls():
# def find_url(target):
# def get_navbar(lang):


# Path: spec/python/models/security/test_rule.py
import os
import re
import yaml
    import pprint
from spec.python import db_connection
from sam.models.security import rule, rule_template
from sam import constants


db = db_connection.db
sub_id = db_connection.default_sub
ds_full = db_connection.dsid_default


def get_dummy_rule():
    base_path = os.path.dirname(__file__)

    rule_path = os.path.join(base_path, os.path.pardir, os.path.pardir, constants.templates_folder, "test_rule.yml")