TestCenter Reference
MeVisLab/Standard/Modules/Scripts/python/TestSupport/Macros.py File Reference

Go to the source code of this file.

Packages

package  TestSupport.Macros
 

Adds GoogleTest like methods.


Functions

def TestSupport::Macros.ASSERT_TRUE
 Throw exception if given expression does not evaluate to true.
def TestSupport::Macros.EXPECT_TRUE
 Expect given expression to evaluate to true.
def TestSupport::Macros.ASSERT_FALSE
 Throw exception if given expression does not evaluate to false.
def TestSupport::Macros.EXPECT_FALSE
 Expect given expression to evaluate to false.
def TestSupport::Macros.ASSERT_EQ
 Throw exception if given values are not equal.
def TestSupport::Macros.EXPECT_EQ
 Expect given values to be equal.
def TestSupport::Macros.ASSERT_NE
 Throw exception if given values are equal.
def TestSupport::Macros.EXPECT_NE
 Expect given values to be not equal.
def TestSupport::Macros.ASSERT_GT
 Throw exception if first given value is less than or equal to the second.
def TestSupport::Macros.EXPECT_GT
 Expect first given value to be greater than the second.
def TestSupport::Macros.ASSERT_GE
 Throw exception if first given value is less than the second.
def TestSupport::Macros.EXPECT_GE
 Expect first given value to be greater than or equal to the second.
def TestSupport::Macros.ASSERT_LT
 Throw exception if first given value is not less than the second.
def TestSupport::Macros.EXPECT_LT
 Expect first given value to be less than the second.
def TestSupport::Macros.ASSERT_LE
 Throw exception if first given value is not less than or equal to the second.
def TestSupport::Macros.EXPECT_LE
 Expect first given value to be less than or equal to the second.
def TestSupport::Macros.ASSERT_FLOAT_EQ
 Throw exception if given values are not equal.
def TestSupport::Macros.EXPECT_FLOAT_EQ
 Expect given values to be equal.
def TestSupport::Macros.ASSERT_FLOAT_NE
 Throw exception if given values are equal.
def TestSupport::Macros.EXPECT_FLOAT_NE
 Expect given values to be not equal.
def TestSupport::Macros.ASSERT_FLOAT_GT
 Throw exception if first given value is not greater than the second.
def TestSupport::Macros.EXPECT_FLOAT_GT
 Expect first given value to be greater than the second.
def TestSupport::Macros.ASSERT_FLOAT_GE
 Throw exception if first given value is not greater than or equal to the second.
def TestSupport::Macros.EXPECT_FLOAT_GE
 Expect first given value to be greater than or equal to the second.
def TestSupport::Macros.ASSERT_FLOAT_LT
 Throw exception if first given value is not less than the second.
def TestSupport::Macros.EXPECT_FLOAT_LT
 Expect first given value to be less than the second.
def TestSupport::Macros.ASSERT_FLOAT_LE
 Throw exception if first given value is not less than or equal to the second.
def TestSupport::Macros.EXPECT_FLOAT_LE
 Expect first given value to be less than or equal to the second.
def TestSupport::Macros.INFO
 Create an info message.
def TestSupport::Macros.WARNING
 Create a warning message.
def TestSupport::Macros.ERROR
 Create an error message.