def METHOD_NAME(self):
    def handler(sender, rows, history_instance, instance, field, **kwargs):
        self.signal_was_called = True
        self.signal_instance = instance
        self.signal_history_instance = history_instance
        self.signal_sender = sender
        self.rows = rows
        self.field = field
    pre_create_historical_m2m_records.connect(handler)
    p = PollWithManyToMany(
        question="what's up?",
        pub_date=today,
    )
    p.save()
    self.setUp()
    p.places.add(
        Place.objects.create(name="London"), Place.objects.create(name="Paris")
    )
    self.assertTrue(self.signal_was_called)
    self.assertEqual(self.signal_instance, p)
    self.assertIsNotNone(self.signal_history_instance)
    self.assertEqual(self.signal_sender, p.history.first().places.model)
    self.assertEqual(self.field, PollWithManyToMany._meta.many_to_many[0])
    self.assertEqual(len(self.rows), 2)