# Path: chirp/stream/looper.py
# class Looper(object):
#     MAX_TRAPPED_EXCEPTIONS = 100
#     def __init__(self):
#     def _begin_looping(self):
#     def _loop_once(self):
#     def _done_looping(self):
#     def _trap_exceptions(self, callable_to_wrap):
#     def loop(self):
#     def stop(self):
#     def loop_in_thread(self):
#     def wait(self):
#     def wait_until_looped_once(self):


import time
import unittest
from chirp.stream import looper



class MockLooper(looper.Looper):

    # How many times _loop_once() has been called.
    loop_count = 0

    # Set to true when _begin_looping() has been called.
    begin_looping_called = False

    # Set to true when _done_looping() has been called.
    done_looping_called = False

    # If true, always raise an exception when _loop_once() or _done_looping()
    # is called.
    raise_exception = False


# Path: chirp/stream/looper.py
# class Looper(object):
#     MAX_TRAPPED_EXCEPTIONS = 100
#     def __init__(self):
#     def _begin_looping(self):
#     def _loop_once(self):
#     def _done_looping(self):
#     def _trap_exceptions(self, callable_to_wrap):
#     def loop(self):
#     def stop(self):
#     def loop_in_thread(self):
#     def wait(self):
#     def wait_until_looped_once(self):


# Path: chirp/stream/looper_test.py
import time
import unittest
from chirp.stream import looper




class MockLooper(looper.Looper):

    # How many times _loop_once() has been called.
    loop_count = 0

    # Set to true when _begin_looping() has been called.
    begin_looping_called = False

    # Set to true when _done_looping() has been called.
    done_looping_called = False

    # If true, always raise an exception when _loop_once() or _done_looping()
    # is called.
    raise_exception = False


    def _begin_looping(self):