def METHOD_NAME(self):
    self.assertIsNone(self.database_resize.finished_at)
    self.assertEqual(self.database_resize.status, DatabaseResize.WAITING)
    self.database_resize.set_error()
    self.assertIsNotNone(self.database_resize.finished_at)
    self.assertEqual(self.database_resize.status, DatabaseResize.ERROR)