예제 #1
0
파일: test_context.py 프로젝트: pib/brules
    def test_backward_propagation(self):
        c1 = Context()
        c2 = Context(data_provider=c1)
        c3 = Context(data_provider=c2)
        c4 = Context(data_provider=c3)

        c4.msg = 'hello'
        c4.get_data_points()

        self.assertEqual(c2.get('msg'), None)
        self.assertEqual(c3.get('msg'), None)
예제 #2
0
파일: test_context.py 프로젝트: pib/brules
    def test_backward_propagation(self):
        c1 = Context()
        c2 = Context(data_provider=c1)
        c3 = Context(data_provider=c2)
        c4 = Context(data_provider=c3)

        c4.msg = 'hello'
        c4.get_data_points()

        self.assertEqual(c2.get('msg'), None)
        self.assertEqual(c3.get('msg'), None)