示例#1
0
 def testValuesMustBeFloats(self):
     """
     Each key in PROPERTY_DETAILS_RAW must have a dict whose values are
     all floats.
     """
     for properties in PROPERTY_DETAILS_RAW.values():
         self.assertTrue(all(type(v) is float for v in properties.values()))
示例#2
0
 def testValuesMustBeFloats(self):
     """
     Each key in PROPERTY_DETAILS_RAW must have a dict whose values are
     all floats.
     """
     for properties in PROPERTY_DETAILS_RAW.values():
         self.assertTrue(all(type(v) is float for v in properties.values()))
示例#3
0
 def testNumberOfValues(self):
     """
     Each key in PROPERTY_DETAILS_RAW must have a dict with 10 elements in
     it as the value.
     """
     for propertyNames in PROPERTY_DETAILS_RAW.values():
         self.assertEqual([
             'aliphaticity', 'aromaticity', 'composition', 'hydrogenation',
             'hydropathy', 'hydroxythiolation', 'iep', 'polar requirement',
             'polarity', 'volume'
         ], sorted(propertyNames))
示例#4
0
 def testNumberOfValues(self):
     """
     Each key in PROPERTY_DETAILS_RAW must have a dict with 10 elements in
     it as the value.
     """
     for propertyNames in PROPERTY_DETAILS_RAW.values():
         self.assertEqual([
             'aliphaticity', 'aromaticity', 'composition',
             'hydrogenation', 'hydropathy', 'hydroxythiolation',
             'iep', 'polar requirement', 'polarity', 'volume'],
             sorted(propertyNames))
示例#5
0
 def testPropertyDetailsRawKeys(self):
     """
     The PROPERTY_DETAILS_RAW dict must contain the right keys.
     """
     self.assertEqual(AA_LETTERS, sorted(PROPERTY_DETAILS_RAW.keys()))
示例#6
0
 def testPropertyDetailsRawKeys(self):
     """
     The PROPERTY_DETAILS_RAW dict must contain the right keys.
     """
     self.assertEqual(AA_LETTERS, sorted(PROPERTY_DETAILS_RAW.keys()))