fix up tests from workflow copy work

This commit is contained in:
AlanCoding
2016-11-15 14:57:05 -05:00
parent 8cda12c020
commit 31a95e5c04
4 changed files with 29 additions and 27 deletions

View File

@@ -258,8 +258,8 @@ def test_user_capabilities_method():
def can_change(self, obj, data):
return 'bar'
def can_add(self, data):
return 'foobar'
def can_copy(self, obj):
return 'foo'
user = User(username='auser')
foo_access = FooAccess(user)
@@ -267,7 +267,7 @@ def test_user_capabilities_method():
foo_capabilities = foo_access.get_user_capabilities(foo, ['edit', 'copy'])
assert foo_capabilities == {
'edit': 'bar',
'copy': 'foobar'
'copy': 'foo'
}