Source code for satellite_populate.assertion_operators

# coding: utf-8
"""
Implement basic assertions to be used in assertion action
"""


[docs]def eq(value, other): """Equal""" return value == other
[docs]def ne(value, other): """Not equal""" return value != other
[docs]def gt(value, other): """Greater than""" return value > other
[docs]def lt(value, other): """Lower than""" return value < other
[docs]def gte(value, other): """Greater than or equal""" return value >= other
[docs]def lte(value, other): """Lower than or equal""" return value <= other
[docs]def identity(value, other): """Identity check using ID""" return value is other