[ADD]Test macros, end
This commit is contained in:
parent
ce816fc284
commit
9ac4e9f24e
@ -18,10 +18,17 @@
|
||||
" Hy Odoo Tests Helpers and Macros "
|
||||
|
||||
(defmacro o-assert-equal [left right] `(.assertEqual self ~left ~right))
|
||||
(defmacro o-assert-not-equal [left right] `(.assertNotEqual self ~left ~right))
|
||||
(defmacro o-assert-true [val] `(.assertTrue self ~val))
|
||||
(defmacro o-assert-false [val] `(.assertFalse self ~val))
|
||||
(defmacro o-assert-is [left right] `(.assertIs self ~left ~right))
|
||||
(defmacro o-assert-is-not [left right] `(.assertIsNot self ~left ~right))
|
||||
(defmacro o-assert-is-none [val] `(.assertIsNone self ~val))
|
||||
(defmacro o-assert-is-not-none [val] `(.assertIsNotNone self ~val))
|
||||
(defmacro o-assert-in [left right] `(.assertIn self ~left ~right))
|
||||
(defmacro o-assert-not-in [left right] `(.assertNotIn self ~left ~right))
|
||||
(defmacro o-assert-is-instance [left right] `(.assertIsInstance self ~left ~right))
|
||||
(defmacro o-assert-not-is-instance [left right] `(.assertNotIsInstance self ~left ~right))
|
||||
(defmacro o-assert-raises [Error] `(.assertRaises self ~Error))
|
||||
|
||||
(defmacro odo-assert-raises [Error body]
|
||||
|
Loading…
Reference in New Issue
Block a user