コード例 #1
0
ファイル: testfactory.py プロジェクト: jonobrien/swen261
 def createCommunity():
     # create community
     community = Community(
         zipcode = 14626,
         name = 'First Community')
     community.save()
     return community
コード例 #2
0
ファイル: testfactory.py プロジェクト: jonobrien/swen261
 def createSecondCommunity(zipcode, name):
     # create community
     community = Community(
         zipcode = zipcode,
         name = name)
     community.save()
     return community
コード例 #3
0
ファイル: tests.py プロジェクト: jonobrien/swen261
 def setUp(self):
     # create community
     community = Community(
         zipcode = 14626,
         name = 'First Community')
     community.save()
     # create community wall
     community_wall = communityWall(
         wall_name = 'Test Wall Name',
         community = community)