def test_roles(self): """ A test """ role = Role(id='none', role_id='none', ordinal=0) self.assertIsNotNone(role) role.put() found = Role.get_by_id('none') self.assertIsNotNone(found) self.assertEqual('none', found.key.id()) self.assertEqual('none', found.role_id)
def create_meeting(self, request): authorise(request.person, request.token) mm = Role(name=request.name, importance=request.importance, parentId=request.parentId); res = RoleMsg(id=mm.put().id(), name=request.name, importance=request.importance, parentId=mm.parentId) return res