Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)