Trees | Indices | Help |
|
---|
|
1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 # 4 # 5 # Copyright (C) 2011 University of Dundee & Open Microscopy Environment. 6 # All rights reserved. 7 # 8 # Copyright 2013 Glencoe Software, Inc. All rights reserved. 9 # Use is subject to license terms supplied in LICENSE.txt 10 # 11 # This program is free software: you can redistribute it and/or modify 12 # it under the terms of the GNU Affero General Public License as 13 # published by the Free Software Foundation, either version 3 of the 14 # License, or (at your option) any later version. 15 # 16 # This program is distributed in the hope that it will be useful, 17 # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 # GNU Affero General Public License for more details. 20 # 21 # You should have received a copy of the GNU Affero General Public License 22 # along with this program. If not, see <http://www.gnu.org/licenses/>. 23 # 24 # pytest fixtures used as defined in pytest_fixtures.py: 25 # - gatewaywrapper 26 # 27 28 from omero.gateway.pytest_fixtures import * 2931 gatewaywrapper.loginAsAuthor() 32 user = gatewaywrapper.gateway.getUser() 33 assert user.isAdmin() is False 34 int(user.getId()) 35 assert user.getName() == gatewaywrapper.AUTHOR.name 36 assert user.getFirstName() == gatewaywrapper.AUTHOR.firstname37
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Sep 23 15:05:01 2014 | http://epydoc.sourceforge.net |