tripleo-quickstart/test_plugins/equalto.py
Paul Belanger 200395275d
Fix H102 Apache 2.0 license header not found
Change-Id: I2ce7ec4535c509ca05cd31b8195f36d17aa4de07
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-29 14:08:00 -04:00

27 lines
863 B
Python

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
'''This module implements test that are availablein Jinja2 2.8 but missing
from 2.7 (which is what is available on EL7 linux distributions).'''
def test_equalto(value, other):
return value == other
class TestModule(object):
def tests(self):
return {
'equalto': test_equalto,
}