def test_processTemplate(self): dc = self.zp.addDeviceClass('Device', zPythonClass='a.b.c.d.Device') dc.addComponentType('Enclosure') self.write(self.zp.zenpackUI, '${zenpack.id}\n${zenpack.version}\n') version = defaults.get('version') self.assertEqual(self.results[-1], call(u'a.b.c\n%s\n' % version))