def test_should_dump_cfg(self): self.module.string_option = 'a value' self.module.int_option = 123 self.module.bool_option = False self.module._private_option = 'secret' make.dump_cfg(self.module, self.fake_cprint) self.assertEqual(self.get_out_lines(), [ ' bool_option: False', ' int_option: 123', 'string_option: a value' ])
def test_should_dump_empty_cfg(self): make.dump_cfg(self.module, self.fake_cprint) self.assertEqual(self.get_out_lines(), [])