예제 #1
0
 def createCommunity():
     # create community
     community = Community(
         zipcode = 14626,
         name = 'First Community')
     community.save()
     return community
예제 #2
0
 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)