Robot Framework
Easter.py
Go to the documentation of this file.
1
# Copyright 2008-2015 Nokia Networks
2
# Copyright 2016- Robot Framework Foundation
3
#
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
# you may not use this file except in compliance with the License.
6
# You may obtain a copy of the License at
7
#
8
# http://www.apache.org/licenses/LICENSE-2.0
9
#
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS,
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15
16
from
robot.api
import
logger
17
18
19
def
none_shall_pass
(who):
20
if
who
is
not
None
:
21
raise
AssertionError
(
'None shall pass!'
)
22
logger.info(
23
'<iframe width="560" height="315" '
24
'src="https://www.youtube-nocookie.com/embed/zKhEw7nD9C4?autoplay=1" '
25
'frameborder="0" '
26
'allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" '
27
'allowfullscreen>'
28
'</iframe>'
,
29
html=
True
30
)
AssertionError
robot.api
Definition:
__init__.py:1
robot.libraries.Easter.none_shall_pass
def none_shall_pass(who)
Definition:
Easter.py:19
src
robot
libraries
Easter.py
Generated by
1.9.1