def test_cant_fulfill_an_expired_order(self, mock1):
    self.order.expiration_datetime = (datetime.now(timezone.utc) - timedelta(hours=1))
    self.order.save()
    response = self.client.post(reverse('request_shoutout:fulfill'), self.request_data, format='multipart')
    self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
    self.assertEqual(response.data, {'error': "Can't fulfill an expired order."})
def test_cant_fulfill_an_expired_order(self, mock1):
    self.order.expiration_datetime = (datetime.now(timezone.utc) - timedelta(hours=1))
    self.order.save()
    response = self.client.post(reverse('request_shoutout:fulfill'), self.request_data, format='multipart')
    self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
    self.assertEqual(response.data, {'error': "Can't fulfill an expired order."})