def METHOD_NAME(self):
    self.client.login(username=self.user.username, password='***')
    self.client.post(reverse('create_alert'), {'alert_text': "Maintenance alert"})
    alert = MaintenanceAlert.objects.latest('created')
    self.assertEqual(
        repr(alert),
        "MaintenanceAlert(text='Maintenance alert', active='False', domains='All Domains')"
    )