~ubuntu-branches/ubuntu/trusty/autodocktools/trusty

« back to all changes in this revision

Viewing changes to AutoDockTools/Utilities24/Tests/test_pdbqs_to_pdbqt.py

  • Committer: Package Import Robot
  • Author(s): Thorsten Alteholz
  • Date: 2012-02-06 18:00:00 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120206180000-cmdihm43xz7qi2qk
Tags: 1.5.6~rc3~cvs.20120206-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
#
4
4
#
5
 
# $Id: test_pdbqs_to_pdbqt.py,v 1.3 2011/09/07 23:00:37 annao Exp $
 
5
# $Id: test_pdbqs_to_pdbqt.py,v 1.2 2006/06/13 17:52:33 rhuey Exp $
6
6
#
7
7
 
8
8
import unittest, os, sys
38
38
            # on linux, 0.000 is written -0.000 for atom 1844
39
39
            # whereas on sgi, it is written 0.000
40
40
            # this is a hack to skip that one character
41
 
            #self.assertEqual(refline[:-10], testline[:-10])
42
 
            #self.assertEqual(refline[-9:], testline[-9:])
43
 
            line1 = refline.strip().split()
44
 
            line2 = testline.strip().split()
45
 
            for s1, s2 in zip(line1, line2):
46
 
                if not s1.isalnum(): self.assertAlmostEqual(float(s1), float(s2), places=2)
47
 
                else: self.assertEqual(s1, s2)
 
41
            self.assertEqual(refline[:-10], testline[:-10])
 
42
            self.assertEqual(refline[-9:], testline[-9:])
48
43
 
49
44
 
50
45