test_misagorequirements.py 467 B

12345678910111213141516
  1. from django.test import TestCase
  2. from django.utils.six import StringIO
  3. from ..management.commands import misagorequirements
  4. class MisagoRequirementsTests(TestCase):
  5. def test_list_misago_requirements(self):
  6. """command returns requirements.txt contents"""
  7. command = misagorequirements.Command()
  8. out = StringIO()
  9. command.execute(stdout=out)
  10. command_output = out.getvalue()
  11. self.assertIn("django", command_output)