File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,14 @@ class CallbackTests(unittest.TestCase):
16
16
def testDefaultForNull (self ):
17
17
"""Test that C# can use null for an optional python argument"""
18
18
retVal = test_instance .Call_simpleDefaultArg_WithNull (__name__ )
19
- self .assertEquals (retVal , 'test' )
19
+ pythonRetVal = simpleDefaultArg (None )
20
+ self .assertEquals (retVal , pythonRetVal )
20
21
21
22
def testDefaultForNone (self ):
22
23
"""Test that C# can use no argument for an optional python argument"""
23
24
retVal = test_instance .Call_simpleDefaultArg_WithEmptyArgs (__name__ )
24
- self .assertEquals (retVal , 'test' )
25
+ pythonRetVal = simpleDefaultArg ()
26
+ self .assertEquals (retVal , pythonRetVal )
25
27
26
28
def test_suite ():
27
29
return unittest .makeSuite (CallbackTests )
You can’t perform that action at this time.
0 commit comments