Exemplo n.º 1
0
    def test_init(self):
        processor1 = PostProcessor(classname='class')
        self.assertIsNotNone(processor1)
        self.assertEqual("<PostProcessor Node(id='n/a', classname='class')>",
                         str(processor1))

        processor2 = PostProcessor(id=1, classname='class')
        self.assertIsNotNone(processor2)
        self.assertEqual("<PostProcessor Node(id='1', classname='class')>",
                         str(processor2))
Exemplo n.º 2
0
 def _get_entity(self, classname):
     return PostProcessor(classname=classname)