# Path: mididings/engine.py
# def _start_backend():
#     def __init__(self):
#     def setup(self, scenes, control, pre, post):
#     def run(self):
#     def _start_delay(self):
#     def _parse_scene_number(self, number):
#     def scene_switch_callback(self, scene, subscene):
#     def _call_hooks(self, name, *args):
#     def switch_scene(self, scene, subscene=None):
#     def switch_subscene(self, subscene):
#     def current_scene(self):
#     def current_subscene(self):
#     def scenes(self):
#     def process_event(self, ev):
#     def output_event(self, ev):
#     def process(self, ev):
#     def restart(self):
#     def _restart():
#     def quit(self):
# def run(patch):
# def run(scenes, control=None, pre=None, post=None):
# def switch_scene(scene, subscene=None):
# def switch_subscene(subscene):
# def current_scene():
# def current_subscene():
# def scenes():
# def output_event(ev):
# def in_ports():
# def out_ports():
# def time():
# def active():
# def restart():
# def quit():
# def process_file(infile, outfile, patch):
# class Engine(_mididings.Engine):


from tests.helpers import *
from mididings import *
from mididings import engine
# -*- coding: utf-8 -*-
#
# mididings
#
# Copyright (C) 2008-2014  Dominic Sacré  <dominic.sacre@gmx.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#




class EngineTestCase(MididingsTestCase):

    def test_in_ports(self):
        ports = ['foo', 'bar', 'baz']
        config(in_ports = ports)
        self.assertEqual(engine.in_ports(), ports)

        config(in_ports = 3)
        self.assertEqual(engine.in_ports(), ['in_0', 'in_1', 'in_2'])

    def test_out_ports(self):
        ports = ['foo', 'bar', 'baz']
        config(out_ports = ports)

# Path: mididings/engine.py
# def _start_backend():
#     def __init__(self):
#     def setup(self, scenes, control, pre, post):
#     def run(self):
#     def _start_delay(self):
#     def _parse_scene_number(self, number):
#     def scene_switch_callback(self, scene, subscene):
#     def _call_hooks(self, name, *args):
#     def switch_scene(self, scene, subscene=None):
#     def switch_subscene(self, subscene):
#     def current_scene(self):
#     def current_subscene(self):
#     def scenes(self):
#     def process_event(self, ev):
#     def output_event(self, ev):
#     def process(self, ev):
#     def restart(self):
#     def _restart():
#     def quit(self):
# def run(patch):
# def run(scenes, control=None, pre=None, post=None):
# def switch_scene(scene, subscene=None):
# def switch_subscene(subscene):
# def current_scene():
# def current_subscene():
# def scenes():
# def output_event(ev):
# def in_ports():
# def out_ports():
# def time():
# def active():
# def restart():
# def quit():
# def process_file(infile, outfile, patch):
# class Engine(_mididings.Engine):


# Path: tests/test_engine.py
from tests.helpers import *
from mididings import *
from mididings import engine

# -*- coding: utf-8 -*-
#
# mididings
#
# Copyright (C) 2008-2014  Dominic Sacré  <dominic.sacre@gmx.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#




class EngineTestCase(MididingsTestCase):

    def test_in_ports(self):
        ports = ['foo', 'bar', 'baz']
        config(in_ports = ports)
        self.assertEqual(engine.in_ports(), ports)

        config(in_ports = 3)
        self.assertEqual(engine.in_ports(), ['in_0', 'in_1', 'in_2'])

    def test_out_ports(self):
        ports = ['foo', 'bar', 'baz']
        config(out_ports = ports)

        self.assertEqual(engine.out_ports(), ports)