old_contents: # -*- coding: utf-8 -*-
  
  """
  
  ZUGBRUECKE
  Calling routines in Windows DLLs from Python scripts running on unixlike systems
  https://github.com/pleiszenburg/zugbruecke
  
  	test_gdc.py: Tests by value argument passing and return value (int)
  
  	Required to run on platform / side: [UNIX, WINE]
  
  	Copyright (C) 2017 Sebastian M. Ernst <ernst@pleiszenburg.de>
  
  <LICENSE_BLOCK>
  The contents of this file are subject to the GNU Lesser General Public License
  Version 2.1 ("LGPL" or "License"). You may not use this file except in
  compliance with the License. You may obtain a copy of the License at
  https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
  https://github.com/pleiszenburg/zugbruecke/blob/master/LICENSE
  
  Software distributed under the License is distributed on an "AS IS" basis,
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
  specific language governing rights and limitations under the License.
  </LICENSE_BLOCK>
  
  """
  
  
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  # IMPORT
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  import pytest
  
  from zugbruecke import ctypes
  
  
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  # CLASSES AND ROUTINES
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  class sample_class:
  
  
  	def __init__(self):
  
  		self.__dll__ = ctypes.windll.LoadLibrary('tests/demo_dll.dll')
  
  		# int gcd(int, int)
  		self.gcd = self.__dll__.cookbook_gcd
  		self.gcd.argtypes = (ctypes.c_int, ctypes.c_int)
  		self.gcd.restype = ctypes.c_int
  
  
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  # TEST(s)
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  def test_gdc():
  
  	sample = sample_class()
  
  	assert 7 == sample.gcd(35, 42)
  
new_contents: # -*- coding: utf-8 -*-
  
  """
  
  ZUGBRUECKE
  Calling routines in Windows DLLs from Python scripts running on unixlike systems
  https://github.com/pleiszenburg/zugbruecke
  
  	test_gdc.py: Tests by value argument passing and return value (int)
  
  	Required to run on platform / side: [UNIX, WINE]
  
  	Copyright (C) 2017 Sebastian M. Ernst <ernst@pleiszenburg.de>
  
  <LICENSE_BLOCK>
  The contents of this file are subject to the GNU Lesser General Public License
  Version 2.1 ("LGPL" or "License"). You may not use this file except in
  compliance with the License. You may obtain a copy of the License at
  https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
  https://github.com/pleiszenburg/zugbruecke/blob/master/LICENSE
  
  Software distributed under the License is distributed on an "AS IS" basis,
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the
  specific language governing rights and limitations under the License.
  </LICENSE_BLOCK>
  
  """
  
  
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  # IMPORT
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  import pytest
  
  from zugbruecke import ctypes
  ctypes.windll.start_session(parameter = {'log_level': 10})
  
  
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  # CLASSES AND ROUTINES
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  class sample_class:
  
  
  	def __init__(self):
  
  		self.__dll__ = ctypes.windll.LoadLibrary('tests/demo_dll.dll')
  
  		# int gcd(int, int)
  		self.gcd = self.__dll__.cookbook_gcd
  		self.gcd.argtypes = (ctypes.c_int, ctypes.c_int)
  		self.gcd.restype = ctypes.c_int
  
  
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  # TEST(s)
  # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  
  def test_gdc():
  
  	sample = sample_class()
  
  	assert 7 == sample.gcd(35, 42)
  
subject: test travis cwd ...