def test_(self): log_printer = LogPrinter(NullPrinter()) self.assertRaises(TypeError, fail_acquire_settings, log_printer, None) self.assertRaises(AssertionError, fail_acquire_settings, log_printer, {"setting": ["description", "bear"]}) self.assertEqual(fail_acquire_settings(log_printer, {}), None)
def test_(self): log_printer = LogPrinter(NullPrinter()) self.assertRaises(TypeError, fail_acquire_settings, log_printer, None) self.assertRaises(AssertionError, fail_acquire_settings, log_printer, {'setting': ['description', 'bear']}) self.assertEqual(fail_acquire_settings(log_printer, {}), None)