test_testutils.py 329 B

123456789101112
  1. from django.test import TestCase
  2. from ..models import Role
  3. from ..testutils import fake_post_data
  4. class FakeTestDataTests(TestCase):
  5. def test_fake_post_data_for_role(self):
  6. """fake data was created for Role"""
  7. test_data = fake_post_data(Role(), {'can_fly': 1})
  8. self.assertIn('can_fly', test_data)