Example #1
0
 def test_config_to_events_with_non_iterable_input_returns_list_with_input_as_single_value(
         self):
     em = EventManager()
     self.assertEqual(em.config_to_events('abc'), [em.get('abc')])
Example #2
0
 def test_config_to_events_with_non_iterable_input_returns_list_with_input_as_single_value(self):
     em = EventManager()
     self.assertEqual(em.config_to_events('abc'), [em.get('abc')])
Example #3
0
 def test_config_to_events_with_iterable_input_returns_input(self):
     em = EventManager()
     self.assertEqual(em.config_to_events(['abc', 'def']),
                      [em.get('abc'), em.get('def')])
Example #4
0
 def test_config_to_events_with_iterable_input_returns_input(self):
     em = EventManager()
     self.assertEqual(em.config_to_events(['abc', 'def']), [em.get('abc'), em.get('def')])