def test_call_with_nested_complex_args(self): args = [Argument('arg', value={'a': '4', 'b': 6, 'c': [1, 2, 3]})] original_filter = Transform('HelloWorld', action_name='complex', arguments=args) self.assertAlmostEqual(original_filter.execute(3, {}), 19.0)
def test_execute_with_complex_args(self): original_filter = Transform('HelloWorld', action_name='sub1_filter1', arguments=[Argument('arg1', value={'a': '5.4', 'b': 'string_in'})]) self.assertEqual(original_filter.execute(3, {}), '3.0 5.4 string_in')