def test_suboptions(self): self.assertEqual(list(sorted(get_suboptions('cas').keys())), [ 'dataset', 'exception_on_severity', 'hostname', 'missing', 'port', 'print_messages', 'protocol', 'trace_actions', 'trace_ui_actions' ]) with self.assertRaises(SWATOptionError): get_suboptions('cas.foo') # This is an option, not a level in the hierarchy with self.assertRaises(SWATOptionError): get_suboptions('cas.print_messages')
def test_suboptions(self): self.assertEqual(list(sorted(get_suboptions('cas').keys())), ['connection_retries', 'connection_retry_interval', 'dataset', 'debug', 'exception_on_severity', 'hostname', 'missing', 'port', 'print_messages', 'protocol', 'reflection_levels', 'ssl_ca_list', 'token', 'trace_actions', 'trace_ui_actions', 'username']) with self.assertRaises(SWATOptionError): get_suboptions('cas.foo') # This is an option, not a level in the hierarchy with self.assertRaises(SWATOptionError): get_suboptions('cas.print_messages')