TestCenter Reference
Macros.py
Go to the documentation of this file.
2# Copyright 2009, MeVis Medical Solutions AG
3#
4# The user may use this file in accordance with the license agreement provided with
5# the Software or, alternatively, in accordance with the terms contained in a
6# written agreement between the user and MeVis Medical Solutions AG.
7#
8# For further information use the contact form at https://www.mevislab.de/contact
9#
10
11
27
28# -- system imports ----------------------------------------------------------------------------{{{-
29# ----------------------------------------------------------------------------------------------}}}-
30
31# -- local imports -----------------------------------------------------------------------------{{{-
32import os
33
34import sys
35
36from TestSupport.TestHelper import TestHelper, UseStackFrameFromCallerForLogging, CancelTestException
37
38# ----------------------------------------------------------------------------------------------}}}-
39
40
41# -- class AssertException ---------------------------------------------------------------------{{{-
42# @cond
43
44class AssertException(Exception):
45 # -- def __init__ ----------------------------------------------------------------------------{{{-
46 def __init__(self, reason):
47 self.__reason = reason
48
49 # --------------------------------------------------------------------------------------------}}}-
50
51 # -- def getReason ---------------------------------------------------------------------------{{{-
52 def getReason(self):
53 return repr(self.__reason)
54
55 # --------------------------------------------------------------------------------------------}}}-
56
57 # -- def __str__ -----------------------------------------------------------------------------{{{-
58 def __str__(self):
59 return repr(self.__reason)
60
61 # --------------------------------------------------------------------------------------------}}}-
62
63
64# @endcond
65# ----------------------------------------------------------------------------------------------}}}-
66
67
68# -- def ASSERT_TRUE ---------------------------------------------------------------------------{{{-
69
73@UseStackFrameFromCallerForLogging
74def ASSERT_TRUE(expr, msg=None, logOnSuccess=None):
75 if not Base_verifyTrue(expr, comment=msg, logOnSuccess=logOnSuccess):
76 raise AssertException("Expression does not evaluate to true.")
77
78
79# ----------------------------------------------------------------------------------------------}}}-
80
81
82# -- def EXPECT_TRUE ---------------------------------------------------------------------------{{{-
83
88@UseStackFrameFromCallerForLogging
89def EXPECT_TRUE(expr, msg=None, logOnSuccess=None):
90 return Base_verifyTrue(expr, comment=msg, logOnSuccess=logOnSuccess)
91
92
93# ----------------------------------------------------------------------------------------------}}}-
94
95
96# -- def ASSERT_FALSE --------------------------------------------------------------------------{{{-
97
101@UseStackFrameFromCallerForLogging
102def ASSERT_FALSE(expr, msg=None, logOnSuccess=None):
103 if not Base_verifyFalse(expr, comment=msg, logOnSuccess=logOnSuccess):
104 raise AssertException("Expression does not evaluate to false.")
105
106
107# ----------------------------------------------------------------------------------------------}}}-
108
109
110# -- def EXPECT_FALSE --------------------------------------------------------------------------{{{-
111
116@UseStackFrameFromCallerForLogging
117def EXPECT_FALSE(expr, msg=None, logOnSuccess=None):
118 return Base_verifyFalse(expr, comment=msg, logOnSuccess=logOnSuccess)
119
120
121# ----------------------------------------------------------------------------------------------}}}-
122
123
124# -- def ASSERT_EQ -----------------------------------------------------------------------------{{{-
125
130@UseStackFrameFromCallerForLogging
131def ASSERT_EQ(expected, actual, msg=None, logOnSuccess=None):
132 if not Base_compareEqual(expected, actual, comment=msg, logOnSuccess=logOnSuccess):
133 raise AssertException("Values (%s and %s) are not equal." % (str(expected), str(actual)))
134
135
136# ----------------------------------------------------------------------------------------------}}}-
137
138
139# -- def EXPECT_EQ -----------------------------------------------------------------------------{{{-
140
146@UseStackFrameFromCallerForLogging
147def EXPECT_EQ(expected, actual, msg=None, logOnSuccess=None):
148 return Base_compareEqual(expected, actual, comment=msg, logOnSuccess=logOnSuccess)
149
150
151# ----------------------------------------------------------------------------------------------}}}-
152
153
154# -- def ASSERT_NE -----------------------------------------------------------------------------{{{-
155
160@UseStackFrameFromCallerForLogging
161def ASSERT_NE(expected, actual, msg=None, logOnSuccess=None):
162 if not Base_compareNotEqual(expected, actual, comment=msg, logOnSuccess=logOnSuccess):
163 raise AssertException("Values (%s and %s) are equal." % (str(expected), str(actual)))
164
165
166# ----------------------------------------------------------------------------------------------}}}-
167
168
169# -- def EXPECT_NE -----------------------------------------------------------------------------{{{-
170
176@UseStackFrameFromCallerForLogging
177def EXPECT_NE(expected, actual, msg=None, logOnSuccess=None):
178 return Base_compareNotEqual(expected, actual, comment=msg, logOnSuccess=logOnSuccess)
179
180
181# ----------------------------------------------------------------------------------------------}}}-
182
183
184# -- def ASSERT_GT -----------------------------------------------------------------------------{{{-
185
191@UseStackFrameFromCallerForLogging
192def ASSERT_GT(a, b, msg=None, logOnSuccess=None):
193 if not Base_compareGreaterThan(a, b, comment=msg, logOnSuccess=logOnSuccess):
194 raise AssertException("Value %s not greater than %s." % (str(a), str(b)))
195
196
197# ----------------------------------------------------------------------------------------------}}}-
198
199
200# -- def EXPECT_GT -----------------------------------------------------------------------------{{{-
201
207@UseStackFrameFromCallerForLogging
208def EXPECT_GT(a, b, msg=None, logOnSuccess=None):
209 return Base_compareGreaterThan(a, b, comment=msg, logOnSuccess=logOnSuccess)
210
211
212# ----------------------------------------------------------------------------------------------}}}-
213
214
215# -- def ASSERT_GE -----------------------------------------------------------------------------{{{-
216
221@UseStackFrameFromCallerForLogging
222def ASSERT_GE(a, b, msg=None, logOnSuccess=None):
223 if not Base_compareGreaterThanOrEqual(a, b, comment=msg, logOnSuccess=logOnSuccess):
224 raise AssertException("Value %s not greater than or equal to %s." % (str(a), str(b)))
225
226
227# ----------------------------------------------------------------------------------------------}}}-
228
229
230# -- def EXPECT_GE -----------------------------------------------------------------------------{{{-
231
237@UseStackFrameFromCallerForLogging
238def EXPECT_GE(a, b, msg=None, logOnSuccess=None):
239 return Base_compareGreaterThanOrEqual(a, b, comment=msg, logOnSuccess=logOnSuccess)
240
241
242# ----------------------------------------------------------------------------------------------}}}-
243
244
245# -- def ASSERT_LT -----------------------------------------------------------------------------{{{-
246
251@UseStackFrameFromCallerForLogging
252def ASSERT_LT(a, b, msg=None, logOnSuccess=None):
253 if not Base_compareLessThan(a, b, comment=msg, logOnSuccess=logOnSuccess):
254 raise AssertException("Value %s not less than %s." % (str(a), str(b)))
255
256
257# ----------------------------------------------------------------------------------------------}}}-
258
259
260# -- def EXPECT_LT -----------------------------------------------------------------------------{{{-
261
267@UseStackFrameFromCallerForLogging
268def EXPECT_LT(a, b, msg=None, logOnSuccess=None):
269 return Base_compareLessThan(a, b, comment=msg, logOnSuccess=logOnSuccess)
270
271
272# ----------------------------------------------------------------------------------------------}}}-
273
274
275# -- def ASSERT_LE -----------------------------------------------------------------------------{{{-
276
281@UseStackFrameFromCallerForLogging
282def ASSERT_LE(a, b, msg=None, logOnSuccess=None):
283 if not Base_compareLessThanOrEqual(a, b, comment=msg, logOnSuccess=logOnSuccess):
284 raise AssertException("Value %s not less than or equal to %s." % (str(a), str(b)))
285
286
287# ----------------------------------------------------------------------------------------------}}}-
288
289
290# -- def EXPECT_LE -----------------------------------------------------------------------------{{{-
291
297@UseStackFrameFromCallerForLogging
298def EXPECT_LE(a, b, msg=None, logOnSuccess=None):
299 return Base_compareLessThanOrEqual(a, b, comment=msg, logOnSuccess=logOnSuccess)
300
301
302# ----------------------------------------------------------------------------------------------}}}-
303
304
305# -- def ASSERT_FLOAT_EQ -----------------------------------------------------------------------{{{-
306
312@UseStackFrameFromCallerForLogging
313def ASSERT_FLOAT_EQ(expected, actual, msg=None, epsilon=0.0001, logOnSuccess=None):
314 if not Base_compareFloatEqual(expected, actual, msg, epsilon, logOnSuccess):
315 raise AssertException("Values (%s and %s) not equal." % (str(expected), str(actual)))
316
317
318# ----------------------------------------------------------------------------------------------}}}-
319
320
321# -- def EXPECT_FLOAT_EQ -----------------------------------------------------------------------{{{-
322
329@UseStackFrameFromCallerForLogging
330def EXPECT_FLOAT_EQ(expected, actual, msg=None, epsilon=0.0001, logOnSuccess=None):
331 return Base_compareFloatEqual(expected, actual, msg, epsilon, logOnSuccess)
332
333
334# ----------------------------------------------------------------------------------------------}}}-
335
336
337# -- def ASSERT_FLOAT_NE -----------------------------------------------------------------------{{{-
338
344@UseStackFrameFromCallerForLogging
345def ASSERT_FLOAT_NE(expected, actual, msg=None, epsilon=0.0001, logOnSuccess=None):
346 if not Base_compareFloatNotEqual(expected, actual, msg, epsilon, logOnSuccess):
347 raise AssertException("Values (%s and %s) equal." % (str(expected), str(actual)))
348
349
350# ----------------------------------------------------------------------------------------------}}}-
351
352
353# -- def EXPECT_FLOAT_NE -----------------------------------------------------------------------{{{-
354
361@UseStackFrameFromCallerForLogging
362def EXPECT_FLOAT_NE(expected, actual, msg=None, epsilon=0.0001, logOnSuccess=None):
363 return Base_compareFloatNotEqual(expected, actual, msg, epsilon, logOnSuccess)
364
365
366# ----------------------------------------------------------------------------------------------}}}-
367
368
369# -- def ASSERT_FLOAT_GT -----------------------------------------------------------------------{{{-
370
375@UseStackFrameFromCallerForLogging
376def ASSERT_FLOAT_GT(a, b, msg=None, logOnSuccess=None):
377 if not Base_compareFloatGreaterThan(a, b, comment=msg, logOnSuccess=logOnSuccess):
378 raise AssertException("Value %s not greater than %s." % (str(a), str(b)))
379
380
381# ----------------------------------------------------------------------------------------------}}}-
382
383
384# -- def EXPECT_FLOAT_GT -----------------------------------------------------------------------{{{-
385
391@UseStackFrameFromCallerForLogging
392def EXPECT_FLOAT_GT(a, b, msg=None, logOnSuccess=None):
393 return Base_compareFloatGreaterThan(a, b, comment=msg, logOnSuccess=logOnSuccess)
394
395
396# ----------------------------------------------------------------------------------------------}}}-
397
398
399# -- def ASSERT_FLOAT_GE -----------------------------------------------------------------------{{{-
400
406@UseStackFrameFromCallerForLogging
407def ASSERT_FLOAT_GE(a, b, msg=None, epsilon=0.0001, logOnSuccess=None):
408 if not Base_compareFloatLessThanOrEqual(b, a, msg, epsilon, logOnSuccess):
409 raise AssertException("Value %s not greater than or equal to %s." % (str(a), str(b)))
410
411
412# ----------------------------------------------------------------------------------------------}}}-
413
414
415# -- def EXPECT_FLOAT_GE -----------------------------------------------------------------------{{{-
416
423@UseStackFrameFromCallerForLogging
424def EXPECT_FLOAT_GE(a, b, msg=None, epsilon=0.0001, logOnSuccess=None):
425 return Base_compareFloatLessThanOrEqual(b, a, msg, epsilon, logOnSuccess)
426
427
428# ----------------------------------------------------------------------------------------------}}}-
429
430
431# -- def ASSERT_FLOAT_LT -----------------------------------------------------------------------{{{-
432
437@UseStackFrameFromCallerForLogging
438def ASSERT_FLOAT_LT(a, b, msg=None, logOnSuccess=None):
439 if not Base_compareFloatLessThan(a, b, comment=msg, logOnSuccess=logOnSuccess):
440 raise AssertException("Value %s not less than %s." % (str(a), str(b)))
441
442
443# ----------------------------------------------------------------------------------------------}}}-
444
445
446# -- def EXPECT_FLOAT_LT -----------------------------------------------------------------------{{{-
447
453@UseStackFrameFromCallerForLogging
454def EXPECT_FLOAT_LT(a, b, msg=None, logOnSuccess=None):
455 return Base_compareFloatLessThan(a, b, comment=msg, logOnSuccess=logOnSuccess)
456
457
458# ----------------------------------------------------------------------------------------------}}}-
459
460
461# -- def ASSERT_FLOAT_LE -----------------------------------------------------------------------{{{-
462
468@UseStackFrameFromCallerForLogging
469def ASSERT_FLOAT_LE(a, b, msg=None, epsilon=0.0001, logOnSuccess=None):
470 if not Base_compareFloatLessThanOrEqual(a, b, msg, epsilon, logOnSuccess):
471 raise AssertException("Value %s not less than or equal to %s." % (str(a), str(b)))
472
473
474# ----------------------------------------------------------------------------------------------}}}-
475
476
477# -- def EXPECT_FLOAT_LE -----------------------------------------------------------------------{{{-
478
485@UseStackFrameFromCallerForLogging
486def EXPECT_FLOAT_LE(a, b, msg=None, epsilon=0.0001, logOnSuccess=None):
487 return Base_compareFloatLessThanOrEqual(a, b, msg, epsilon, logOnSuccess)
488
489
490# ----------------------------------------------------------------------------------------------}}}-
491
492
493# -- def EXPECT_EMPTY -----------------------------------------------------------------------{{{-
494
499@UseStackFrameFromCallerForLogging
500def EXPECT_EMPTY(a, msg=None, logOnSuccess=None):
501 return Base_compareEqual(0, len(a), comment=msg, logOnSuccess=logOnSuccess)
502
503
504# -- def ASSERT_EMPTY -----------------------------------------------------------------------{{{-
505
509@UseStackFrameFromCallerForLogging
510def ASSERT_EMPTY(a, msg=None, logOnSuccess=None):
511 if not Base_compareEqual(0, len(a), comment=msg, logOnSuccess=logOnSuccess):
512 raise AssertException("Container %s is not empty." % (str(a)))
513
514
515# -- def EXPECT_NOT_EMPTY -----------------------------------------------------------------------{{{-
516
521@UseStackFrameFromCallerForLogging
522def EXPECT_NOT_EMPTY(a, msg=None, logOnSuccess=None):
523 return Base_compareLessThan(0, len(a), comment=msg, logOnSuccess=logOnSuccess)
524
525
526# -- def ASSERT_NOT_EMPTY -----------------------------------------------------------------------{{{-
527
531@UseStackFrameFromCallerForLogging
532def ASSERT_NOT_EMPTY(a, msg=None, logOnSuccess=None):
533 if not Base_compareLessThan(0, len(a), comment=msg, logOnSuccess=logOnSuccess):
534 raise AssertException("Container %s is empty." % (str(a)))
535
536
537# -- def EXPECT_SIZE -----------------------------------------------------------------------{{{-
538
544@UseStackFrameFromCallerForLogging
545def EXPECT_SIZE(a, size, msg=None, logOnSuccess=None):
546 return Base_compareEqual(size, len(a), comment=msg, logOnSuccess=logOnSuccess)
547
548
549# -- def ASSERT_SIZE -----------------------------------------------------------------------{{{-
550
555@UseStackFrameFromCallerForLogging
556def ASSERT_SIZE(a, size, msg=None, logOnSuccess=None):
557 if not Base_compareEqual(size, len(a), comment=msg, logOnSuccess=logOnSuccess):
558 raise AssertException("Container %s size is not %s." % (str(a), str(size)))
559
560
561# -- def EXPECT_PATH_EXISTS -----------------------------------------------------------------------{{{-
562
566@UseStackFrameFromCallerForLogging
567def EXPECT_PATH_EXISTS(path, msg=None, logOnSuccess=None):
568 contextMsg = "Path = %s" % path
569 return Base_verifyTrue(os.path.exists(path), comment=msg, msg=contextMsg, logOnSuccess=logOnSuccess)
570
571
572# -- def EXPECT_PATH_MISSING -----------------------------------------------------------------------{{{-
573
577@UseStackFrameFromCallerForLogging
578def EXPECT_PATH_MISSING(path, msg=None, logOnSuccess=None):
579 contextMsg = "Path = %s" % path
580 return Base_verifyFalse(os.path.exists(path), comment=msg, msg=contextMsg, logOnSuccess=logOnSuccess)
581
582
583# -- def ASSERT_PATH_EXISTS -----------------------------------------------------------------------{{{-
584
588@UseStackFrameFromCallerForLogging
589def ASSERT_PATH_EXISTS(path, msg=None, logOnSuccess=None):
590 contextMsg = "Path = %s" % path
591 if not Base_verifyTrue(os.path.exists(path), comment=msg, msg=contextMsg, logOnSuccess=logOnSuccess):
592 raise AssertException("Path does not exist: %s" % path)
593
594
595# -- def ASSERT_PATH_MISSING -----------------------------------------------------------------------{{{-
596
600@UseStackFrameFromCallerForLogging
601def ASSERT_PATH_MISSING(path, msg=None, logOnSuccess=None):
602 contextMsg = "Path = %s" % path
603 if not Base_verifyFalse(os.path.exists(path), comment=msg, msg=contextMsg, logOnSuccess=logOnSuccess):
604 raise AssertException("Path exists: %s" % path)
605
606
607# -- def INFO ----------------------------------------------------------------------------------{{{-
608
609@UseStackFrameFromCallerForLogging
610def INFO(msg):
611 Logging_info(msg, depth=1)
612
613
614# ----------------------------------------------------------------------------------------------}}}-
615
616
617# -- def WARNING -------------------------------------------------------------------------------{{{-
618
619@UseStackFrameFromCallerForLogging
620def WARNING(msg):
621 Logging_warning(msg, depth=1)
622
623
624# ----------------------------------------------------------------------------------------------}}}-
625
626
627# -- def ERROR ---------------------------------------------------------------------------------{{{-
628
629@UseStackFrameFromCallerForLogging
630def ERROR(msg):
631 Logging_error(msg, depth=1)
632
633
634# ----------------------------------------------------------------------------------------------}}}-
635
636
637# -- def DEBUG_STOP ---------------------------------------------------------------------------------{{{-
638
639@UseStackFrameFromCallerForLogging
641 Logging_info("Stopping because of DEBUG_STOP()", depth=1)
642 Logging_setStopped(True)
643 raise CancelTestException
644
645
646# ----------------------------------------------------------------------------------------------}}}-
647
648from .Base import (
649 verifyFalse as Base_verifyFalse,
650 verifyTrue as Base_verifyTrue,
651 compareEqual as Base_compareEqual,
652 compareNotEqual as Base_compareNotEqual,
653 compareLessThan as Base_compareLessThan,
654 compareLessThanOrEqual as Base_compareLessThanOrEqual,
655 compareGreaterThan as Base_compareGreaterThan,
656 compareGreaterThanOrEqual as Base_compareGreaterThanOrEqual,
657 compareFloatEqual as Base_compareFloatEqual,
658 compareFloatNotEqual as Base_compareFloatNotEqual,
659 compareFloatLessThanOrEqual as Base_compareFloatLessThanOrEqual,
660 compareFloatGreaterThan as Base_compareFloatGreaterThan,
661 compareFloatLessThan as Base_compareFloatLessThan,
662)
663from .Logging import (
664 error as Logging_error,
665 warning as Logging_warning,
666 info as Logging_info,
667 setStopped as Logging_setStopped,
668)
WARNING(msg)
Create a warning message.
Definition Macros.py:620
ASSERT_NOT_EMPTY(a, msg=None, logOnSuccess=None)
Throw exception if given container is empty.
Definition Macros.py:532
EXPECT_EMPTY(a, msg=None, logOnSuccess=None)
Expect given container to be empty.
Definition Macros.py:500
EXPECT_EQ(expected, actual, msg=None, logOnSuccess=None)
Expect given values to be equal.
Definition Macros.py:147
EXPECT_FLOAT_LE(a, b, msg=None, epsilon=0.0001, logOnSuccess=None)
Expect first given value to be less than or equal to the second.
Definition Macros.py:486
EXPECT_TRUE(expr, msg=None, logOnSuccess=None)
Expect given expression to evaluate to true.
Definition Macros.py:89
EXPECT_LT(a, b, msg=None, logOnSuccess=None)
Expect first given value to be less than the second.
Definition Macros.py:268
EXPECT_SIZE(a, size, msg=None, logOnSuccess=None)
Expect given container to have the given size.
Definition Macros.py:545
ASSERT_PATH_MISSING(path, msg=None, logOnSuccess=None)
Throw exception if given path is not missing, i.e.
Definition Macros.py:601
EXPECT_FLOAT_LT(a, b, msg=None, logOnSuccess=None)
Expect first given value to be less than the second.
Definition Macros.py:454
EXPECT_NE(expected, actual, msg=None, logOnSuccess=None)
Expect given values to be not equal.
Definition Macros.py:177
ERROR(msg)
Create an error message.
Definition Macros.py:630
EXPECT_FLOAT_EQ(expected, actual, msg=None, epsilon=0.0001, logOnSuccess=None)
Expect given values to be equal.
Definition Macros.py:330
ASSERT_FLOAT_GT(a, b, msg=None, logOnSuccess=None)
Throw exception if first given value is not greater than the second.
Definition Macros.py:376
ASSERT_PATH_EXISTS(path, msg=None, logOnSuccess=None)
Throw exception if given path does not exists.
Definition Macros.py:589
ASSERT_FLOAT_LE(a, b, msg=None, epsilon=0.0001, logOnSuccess=None)
Throw exception if first given value is not less than or equal to the second.
Definition Macros.py:469
EXPECT_FLOAT_GE(a, b, msg=None, epsilon=0.0001, logOnSuccess=None)
Expect first given value to be greater than or equal to the second.
Definition Macros.py:424
ASSERT_NE(expected, actual, msg=None, logOnSuccess=None)
Throw exception if given values are equal.
Definition Macros.py:161
ASSERT_GE(a, b, msg=None, logOnSuccess=None)
Throw exception if first given value is less than the second.
Definition Macros.py:222
DEBUG_STOP()
Stops a test immediately for debugging purposes.
Definition Macros.py:640
ASSERT_LT(a, b, msg=None, logOnSuccess=None)
Throw exception if first given value is not less than the second.
Definition Macros.py:252
EXPECT_NOT_EMPTY(a, msg=None, logOnSuccess=None)
Expect given container to be not empty.
Definition Macros.py:522
ASSERT_EQ(expected, actual, msg=None, logOnSuccess=None)
Throw exception if given values are not equal.
Definition Macros.py:131
ASSERT_FALSE(expr, msg=None, logOnSuccess=None)
Throw exception if given expression does not evaluate to false.
Definition Macros.py:102
EXPECT_LE(a, b, msg=None, logOnSuccess=None)
Expect first given value to be less than or equal to the second.
Definition Macros.py:298
ASSERT_FLOAT_NE(expected, actual, msg=None, epsilon=0.0001, logOnSuccess=None)
Throw exception if given values are equal.
Definition Macros.py:345
ASSERT_LE(a, b, msg=None, logOnSuccess=None)
Throw exception if first given value is not less than or equal to the second.
Definition Macros.py:282
ASSERT_SIZE(a, size, msg=None, logOnSuccess=None)
Throw exception if given container does not have the given size.
Definition Macros.py:556
ASSERT_FLOAT_EQ(expected, actual, msg=None, epsilon=0.0001, logOnSuccess=None)
Throw exception if given values are not equal.
Definition Macros.py:313
EXPECT_FALSE(expr, msg=None, logOnSuccess=None)
Expect given expression to evaluate to false.
Definition Macros.py:117
ASSERT_GT(a, b, msg=None, logOnSuccess=None)
Throw exception if first given value is less than or equal to the second.
Definition Macros.py:192
ASSERT_FLOAT_LT(a, b, msg=None, logOnSuccess=None)
Throw exception if first given value is not less than the second.
Definition Macros.py:438
INFO(msg)
Create an info message.
Definition Macros.py:610
EXPECT_FLOAT_NE(expected, actual, msg=None, epsilon=0.0001, logOnSuccess=None)
Expect given values to be not equal.
Definition Macros.py:362
EXPECT_GT(a, b, msg=None, logOnSuccess=None)
Expect first given value to be greater than the second.
Definition Macros.py:208
EXPECT_FLOAT_GT(a, b, msg=None, logOnSuccess=None)
Expect first given value to be greater than the second.
Definition Macros.py:392
ASSERT_FLOAT_GE(a, b, msg=None, epsilon=0.0001, logOnSuccess=None)
Throw exception if first given value is not greater than or equal to the second.
Definition Macros.py:407
EXPECT_PATH_EXISTS(path, msg=None, logOnSuccess=None)
Expect the given path to exist.
Definition Macros.py:567
ASSERT_EMPTY(a, msg=None, logOnSuccess=None)
Throw exception if given container is not empty.
Definition Macros.py:510
ASSERT_TRUE(expr, msg=None, logOnSuccess=None)
Throw exception if given expression does not evaluate to true.
Definition Macros.py:74
EXPECT_PATH_MISSING(path, msg=None, logOnSuccess=None)
Expect the given path to be missing, i.e.
Definition Macros.py:578
EXPECT_GE(a, b, msg=None, logOnSuccess=None)
Expect first given value to be greater than or equal to the second.
Definition Macros.py:238