Skip to content

Commit

Permalink
unit test for __eq__ check with Nones
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvlaminck committed Nov 25, 2024
1 parent 5164bc5 commit 2068d4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UnitTests/GeneralTests/OTLObject_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,14 @@ def test__eq__(subtests):

assert not instance == instance2

with subtests.test(msg='None'):
instance = AllCasesTestClass()
instance.testStringField = 'test'

instance2 = None

assert not instance == instance2


def test_to_dict_and_from_dict():
instance = AllCasesTestClass()
Expand Down

0 comments on commit 2068d4d

Please sign in to comment.