def METHOD_NAME(self):
    class opts(object):
        charmname = 'testcharm'
        charmhome = tempfile.mkdtemp()
        template = 'bash'
        accept_defaults = False
    self.c = CharmGenerator(opts)