def setUp(self): """ set up some basics for the coming tests """ self.vars = [ DottedVar('egg', 'This is a string variable', title="String Title", default="string", page='Carl', modes=(EXPERT)), ] self.template = BaseTemplate('my_name') command = CreateDistroCommand() command.parse_args(['-t', 'package']) command.interactive = False self.command = command # create a temp directory and move there, remember where we came from self.orig_dir = os.getcwd() self.temp_dir = tempfile.mkdtemp() cd(self.temp_dir)