コード例 #1
0
 def testPermittedClustersOnly(self):
     """
     All cluster numbers must be in {1, 2, 3, 4, 5}.
     """
     for propertiesDict in PROPERTY_CLUSTERS.values():
         for clusterNr in propertiesDict.values():
             self.assertIn(clusterNr, {1, 2, 3, 4, 5})
コード例 #2
0
ファイル: test_aa.py プロジェクト: bamueh/dark-matter
 def testPermittedClustersOnly(self):
     """
     All cluster numbers must be in {1, 2, 3, 4, 5}.
     """
     for propertiesDict in PROPERTY_CLUSTERS.values():
         for clusterNr in propertiesDict.values():
             self.assertIn(clusterNr, {1, 2, 3, 4, 5})
コード例 #3
0
 def testNumberOfValues(self):
     """
     Each key in PROPERTY_CLUSTERS must have a dict with 10 elements in it
     as the value.
     """
     for propertyNames in PROPERTY_CLUSTERS.values():
         self.assertEqual([
             'aliphaticity', 'aromaticity', 'composition', 'hydrogenation',
             'hydropathy', 'hydroxythiolation', 'iep', 'polar requirement',
             'polarity', 'volume'
         ], sorted(propertyNames.keys()))
コード例 #4
0
ファイル: test_aa.py プロジェクト: bamueh/dark-matter
 def testNumberOfValues(self):
     """
     Each key in PROPERTY_CLUSTERS must have a dict with 10 elements in it
     as the value.
     """
     for propertyNames in PROPERTY_CLUSTERS.values():
         self.assertEqual([
             'aliphaticity', 'aromaticity', 'composition',
             'hydrogenation', 'hydropathy', 'hydroxythiolation',
             'iep', 'polar requirement', 'polarity', 'volume'],
             sorted(propertyNames.keys()))
コード例 #5
0
 def testAliphaticity(self):
     """
     Aliphaticity must always be in cluster 1.
     """
     for propertiesDict in PROPERTY_CLUSTERS.values():
         self.assertEqual(1, propertiesDict['aliphaticity'])
コード例 #6
0
 def testPropertyClusterKeys(self):
     """
     The PROPERTY_CLUSTERS dict must contain the right keys.
     """
     self.assertEqual(AA_LETTERS, sorted(PROPERTY_CLUSTERS.keys()))
コード例 #7
0
ファイル: test_aa.py プロジェクト: bamueh/dark-matter
 def testAliphaticity(self):
     """
     Aliphaticity must always be in cluster 1.
     """
     for propertiesDict in PROPERTY_CLUSTERS.values():
         self.assertEqual(1, propertiesDict['aliphaticity'])
コード例 #8
0
ファイル: test_aa.py プロジェクト: bamueh/dark-matter
 def testPropertyClusterKeys(self):
     """
     The PROPERTY_CLUSTERS dict must contain the right keys.
     """
     self.assertEqual(AA_LETTERS, sorted(PROPERTY_CLUSTERS.keys()))