~ubuntu-branches/debian/sid/python-biopython/sid

« back to all changes in this revision

Viewing changes to Tests/test_ProtParam.py

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2014-06-08 10:25:35 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20140608102535-ebgnhcpcrum3i3w8
Tags: 1.64+dfsg-1
* New upstream version
* Build-Depends raxml only on those architectures where it is available
  Closes: #750845

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
    def test_get_molecular_weight(self):
32
32
        "Test calculating protein molecular weight"
33
 
        self.assertAlmostEqual(self.analysis.molecular_weight(), 17102.76)
 
33
        self.assertAlmostEqual(round(self.analysis.molecular_weight(), 2),
 
34
                               17102.45)
34
35
 
35
36
    def test_get_monoisotopic_molecular_weight(self):
36
37
        "Test calculating the monoisotopic molecular weight"
37
38
        self.analysis = ProtParam.ProteinAnalysis(self.seq_text, monoisotopic=True)
38
 
        self.assertAlmostEqual(self.analysis.molecular_weight(), 17092.53)
 
39
        self.assertAlmostEqual(round(self.analysis.molecular_weight(), 2),
 
40
                               17092.70)
39
41
 
40
42
    def test_aromaticity(self):
41
43
        "Test calculating protein aromaticity"