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

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