'Verify that the event with the given name was emitted
a specific number of times.'

def assert_event_emission_count(self, event_name, expected_count):

    actual_count = 0
    for call_args in self.mock_tracker.emit.call_args_list:
        if (call_args[0][0] == event_name):
            actual_count += 1
    self.assertEqual(actual_count, expected_count)
