old_contents: import datetime
  
  import pytz
  from django.test import TestCase
  from django.contrib.auth.models import User
  
  from .models import Reminder, ReminderTime
  
  
  class TestCron(TestCase):
  
      def setUp(self):
          self.u = User(username='test')
          self.u.save()
  
      def test_cron(self):
  
          ten_min_ago = (
              datetime.datetime.now(pytz.utc) -
              datetime.timedelta(minutes=10)
          )
          r = Reminder(
              user=self.u,
              message="test",
              telnumber="123",
          )
          r.save()
  
          rt = ReminderTime(
              cronstring="* * * * *",
              last_run=ten_min_ago,
              reminder=r,
          )
          rt.save()
  
new_contents: import pytz
  import datetime
  
  from takeyourmeds.utils.test import TestCase
  
  class TestCron(TestCase):
      def test_cron(self):
          ten_min_ago = datetime.datetime.now(pytz.utc) - \
              datetime.timedelta(minutes=10)
  
          reminder = self.user.reminder_set.create(
              message="test",
              telnumber='123',
          )
  
          reminder.reminder_times.create(
              cronstring="* * * * *",
              last_run=ten_min_ago,
          )
  
subject: Tidy reminder tests