test_testutils.py 251 B

12345678
  1. from misago.acl.models import Role
  2. from misago.acl.testutils import fake_post_data
  3. def test_fake_post_data_for_role():
  4. """fake data was created for Role"""
  5. test_data = fake_post_data(Role(), {'can_fly': 1})
  6. assert "can_fly" in test_data