more organization of access method preprocessing

This commit is contained in:
AlanCoding
2016-08-29 16:57:30 -04:00
parent 23791cb91e
commit 381e8aacdd
2 changed files with 33 additions and 14 deletions

View File

@@ -0,0 +1,14 @@
import pytest
from django.core.urlresolvers import reverse
@pytest.fixture
def test_inventory_group_add(inventory, alice, bob, options):
inventory.admin_role.add(alice)
response = options(reverse('api:inventory_detail', args=[inventory.pk]), alice)
print ' resp: ' + str(response.data)
assert 'POST' in response.data
inventory.read_role.add(bob)