Skip to content

Commit

Permalink
provide necesssary method stubs for mock document test class
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgross committed Jun 18, 2015
1 parent 7926c27 commit 0fe7ff2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Products/contentmigration/testcontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,12 @@ def __init__(self, id, title='', description='', text_format='', text=''):
def Title(self):
return self.title

def listCreators(self):
return ('test_user_1_',)

def Creator(self):
return self.listCreators()[0]


InitializeClass(Document)
DocumentFactory = Factory(Document)

0 comments on commit 0fe7ff2

Please sign in to comment.