# Path: haystack/model.py
# class NotValid(Exception):
# class LoadException(Exception):
# class Model(object):
#     def __init__(self, ctypes_module):
#     def reset(self):
#     def __create_POPO_classes(self, targetmodule):
#     def build_python_class_clones(self, targetmodule):
#     def get_pythoned_modules(self):
#     def get_pythoned_module(self, name):
#     def import_module(self, module_name):
#     def get_imported_modules(self):
#     def get_imported_module(self, name):
# def copy_generated_classes(src_module, dst_module):
# def import_module_for_target_ctypes(module_name, target_ctypes):
# 
# Path: haystack/mappings/process.py
# PROC_MAP_REGEX = re.compile(
#     # Address range: '08048000-080b0000 '
#     r'([0-9a-f]+)-([0-9a-f]+) '
#     # Permission: 'r-xp '
#     r'(.{4}) '
#     # Offset: '0804d000'
#     r'([0-9a-f]+) '
#     # Device (major:minor): 'fe:01 '
#     r'([0-9a-f]{2}):([0-9a-f]{2}) '
#     # Inode: '3334030'
#     r'([0-9]+)'
#     # Filename: '    /usr/bin/synergyc'
#     r'(?: +(.*))?')
# __LOCAL_MAPPINGS = None
#         __LOCAL_MAPPINGS = make_process_memory_handler(dbg.MyPTraceProcess(os.getpid(), None))
# class ProcessMemoryMapping(AMemoryMapping):
# class ProcessLoader(interfaces.IMemoryLoader):
#     def __init__(self, process, start, end, permissions, offset,
#                  major_device, minor_device, inode, pathname):
#     def read_word(self, address):
#     def read_bytes(self, address, size):
#     def read_struct(self, address, _struct):
#     def read_array(self, address, basetype, count):
#     def is_mmaped(self):
#     def mmap(self):
#     def rebase(self, new_start_address):
#     def reset(self):
#     def __getstate__(self):
# def make_process_memory_handler(process):
# def make_local_memory_handler(force=False):
#     def __init__(self, opts):
#     def make_memory_handler(self):


import logging
import unittest
from haystack import model
from haystack.mappings import process
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Tests haystack.model ."""




class TestCopyModule(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.memory_handler = process.make_local_memory_handler()
        cls.my_target = cls.memory_handler.get_target_platform()

# Path: haystack/model.py
# class NotValid(Exception):
# class LoadException(Exception):
# class Model(object):
#     def __init__(self, ctypes_module):
#     def reset(self):
#     def __create_POPO_classes(self, targetmodule):
#     def build_python_class_clones(self, targetmodule):
#     def get_pythoned_modules(self):
#     def get_pythoned_module(self, name):
#     def import_module(self, module_name):
#     def get_imported_modules(self):
#     def get_imported_module(self, name):
# def copy_generated_classes(src_module, dst_module):
# def import_module_for_target_ctypes(module_name, target_ctypes):
# 
# Path: haystack/mappings/process.py
# PROC_MAP_REGEX = re.compile(
#     # Address range: '08048000-080b0000 '
#     r'([0-9a-f]+)-([0-9a-f]+) '
#     # Permission: 'r-xp '
#     r'(.{4}) '
#     # Offset: '0804d000'
#     r'([0-9a-f]+) '
#     # Device (major:minor): 'fe:01 '
#     r'([0-9a-f]{2}):([0-9a-f]{2}) '
#     # Inode: '3334030'
#     r'([0-9]+)'
#     # Filename: '    /usr/bin/synergyc'
#     r'(?: +(.*))?')
# __LOCAL_MAPPINGS = None
#         __LOCAL_MAPPINGS = make_process_memory_handler(dbg.MyPTraceProcess(os.getpid(), None))
# class ProcessMemoryMapping(AMemoryMapping):
# class ProcessLoader(interfaces.IMemoryLoader):
#     def __init__(self, process, start, end, permissions, offset,
#                  major_device, minor_device, inode, pathname):
#     def read_word(self, address):
#     def read_bytes(self, address, size):
#     def read_struct(self, address, _struct):
#     def read_array(self, address, basetype, count):
#     def is_mmaped(self):
#     def mmap(self):
#     def rebase(self, new_start_address):
#     def reset(self):
#     def __getstate__(self):
# def make_process_memory_handler(process):
# def make_local_memory_handler(force=False):
#     def __init__(self, opts):
#     def make_memory_handler(self):


# Path: test/haystack/test_model.py
import logging
import unittest
from haystack import model
from haystack.mappings import process

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Tests haystack.model ."""




class TestCopyModule(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.memory_handler = process.make_local_memory_handler()
        cls.my_target = cls.memory_handler.get_target_platform()

        cls.my_model = model.Model(cls.my_target.get_target_ctypes())