def test_callwithresult(self):

    def process_result(result):
        return (result * 2)
    self._dll.tf_i.restype = process_result
    self._dll.tf_i.argtypes = (c_int,)
    self.assertEqual(self._dll.tf_i(42), 28)
    self.assertEqual(self.S(), 42)
    self.assertEqual(self._dll.tf_i((- 42)), (- 28))
    self.assertEqual(self.S(), (- 42))
def test_callwithresult(self):

    def process_result(result):
        return (result * 2)
    self._dll.tf_i.restype = process_result
    self._dll.tf_i.argtypes = (c_int,)
    self.assertEqual(self._dll.tf_i(42), 28)
    self.assertEqual(self.S(), 42)
    self.assertEqual(self._dll.tf_i((- 42)), (- 28))
    self.assertEqual(self.S(), (- 42))