Example #1
0
 def testWritableProperty(self):
     setCurrentUser("*****@*****.**", "User1")
     register_new_user('User1')
     place1url = create_place("Test Place 1")
     self.assertTrue(get_place_properties(place1url)["writable"])
     logoutCurrentUser()
     setCurrentUser("*****@*****.**", "User2")
     register_new_user('User2')
     self.assertFalse(get_place_properties(place1url)["writable"])
Example #2
0
 def testSavePlaceName(self):
     setCurrentUser("*****@*****.**", "User1")
     register_new_user('User1')
     place1url = create_place("Test Place 1")
     save_place(place1url, name="This is a new place name")
     self.assertEqual(get_place_properties(place1url)["name"], "This is a new place name")