# Path: tests/utils.py
# class TObserver(object):
#     def __init__(self, observer):
#         self.events = []
#         observer.bind('change', self.handler)
# 
#     def handler(self, event):
#         self.events.append(event)


import src.circular.template.observer as o
from tests.utils import TObserver

class MockObj(object):
    def __init__(self,v):
        self.v = v

def test_obj_observer():
    m = MockObj(10)

# Path: tests/utils.py
# class TObserver(object):
#     def __init__(self, observer):
#         self.events = []
#         observer.bind('change', self.handler)
# 
#     def handler(self, event):
#         self.events.append(event)


# Path: tests/circular/template/test_observer.py
import src.circular.template.observer as o
from tests.utils import TObserver


class MockObj(object):
    def __init__(self,v):
        self.v = v

def test_obj_observer():
    m = MockObj(10)

    ob1 = o.observe(m)