test_remakemisagochecksums.py 488 B

123456789101112131415
  1. from django.test import TestCase
  2. from django.utils.six import StringIO
  3. from ..management.commands import remakemisagochecksums
  4. class RemakeMisagoChecksumsTests(TestCase):
  5. def test_remake_checksums(self):
  6. """command raises no errors"""
  7. command = remakemisagochecksums.Command()
  8. out = StringIO()
  9. command.execute("--force", stdout=out)
  10. command_output = out.getvalue().splitlines()[-1].strip()
  11. self.assertEqual(command_output, "Done!")