def test_in_string_freeze_notifications(self):
        timestamp = datetime.datetime.now() - datetime.timedelta(hours=1)
        self.release.stringfreeze_date = timestamp
        self.release.notifications.before_stringfreeze = True
        self.release.notifications.save()
        self.release.save()

        notify_string_freeze()

        # Sorted mails list
        mails = key_sort(mail.outbox, 'to')

        self.assertEqual(len(mails), 4)
        self.assertEqual(mails[0].subject, '[localhost] Release is in string '
            'freeze period: Release1')

        self.assertEqual(mails[0].to, ['maintainer3@localhost'])
        self.assertEqual(mails[1].to, ['maintainer@localhost'])
        self.assertEqual(mails[2].to, ['team_coordinator@localhost'])
        self.assertEqual(mails[3].to, ['team_member@localhost'])
Check whether notifications are sent to the correct people whenever
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/releases/tests/notifications.py/ReleaseNotificationTests.test_in_string_freeze_notifications