def METHOD_NAME(self):
    kwargs = {
        'text': "Maintenance alert",
        'active': True
    }
    alert = MaintenanceAlert.objects.create(**kwargs)
    active_alerts = MaintenanceAlert.get_active_alerts()
    self.assertQuerysetEqual(active_alerts, [alert])