@@ -0,0 +1,1819 @@
+# Copyright (C) 2015 Real Time Enterprises, Inc.%0A#%0A# This program is free software; you can redistribute it and/or modify%0A# it under the terms of the GNU General Public License as published by%0A# the Free Software Foundation; either version 2 of the License.%0A#%0A# This program is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A# GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU General Public License%0A# along with this program; if not, write to the Free Software%0A# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A#%0Afrom nose import with_setup%0Afrom nose.tools import raises%0Aimport ConfigParser, os%0Afrom PyFileMaker import FMServer%0A%0Aclass TestFMServer:%0A    %0A    def setUp(self):%0A        config = ConfigParser.ConfigParser()%0A#        config.readfp(open('mytesting.cfg'))%0A#        %0A#        self.hostname = config.get('testing', 'hostname')%0A#        self.username = config.get('testing', 'username')%0A#        self.password = config.get('testing', 'password')%0A#        %0A#        self.databases = config.get('testing', 'databases').split(',')%0A#        self.databases = %5Bx.strip(' ') for x in self.databases%5D%0A#        %0A#        self.layout = config.get('testing', 'layout')%0A#        %0A#        self.fm = CheckFilemaker()%0A#        self.fm.connect(self.hostname, self.username, self.password, self.databases%5B0%5D, self.layout)%0A            %0A    def tearDown(self):%0A        pass%0A       %0A    def test_1(self):%0A        %22%22%22Test hostnames with dashes%22%22%22%0A        FMServer('login:password@filemaker-1.server.com')%0A        FMServer('login:password@filemaker-1-2.server.com')%0A        FMServer('login:password@f-i-l-e-m-a-k-e-r-1-2.server.com')%0A

Fix for #2 with tests.