示例#1
0
 def testDeletePlace(self):
     setCurrentUser("*****@*****.**", "User1")
     register_new_user('User1')
     self.assertEquals(len(get_my_places()), 0)
     place1url = create_place("Test Place 1")
     self.assertEquals(len(get_my_places()), 1)
     delete_place(place1url)
     self.assertEquals(len(get_my_places()), 0)
示例#2
0
 def testDeleteUnoccupiedPlace(self):
     setCurrentUser("*****@*****.**", "User1")
     register_new_user('User1')
     place1 = create_place("Test Place 1")
     place2 = create_place("Test Place 2")
     role1 = create_role("Test Role 1")
     create_presence(role1, place2)
     delete_place(place1)