def test_template(self): i = Image(self.xml, self.client) i.convert_types() assert isinstance(i.template, Template)