コード例 #1
0
ファイル: test_usage.py プロジェクト: GavinHuttley/pycogent
 def test_positionalBases(self):
     """BaseUsage positionalBases should have copy of self at each position"""
     b = BaseUsage('A')
     p = b.positionalBases()
     for i in p:
         assert i is not b
         self.assertEqual(i, {'A':1,'U':0,'C':0,'G':0})
コード例 #2
0
 def test_positionalBases(self):
     """BaseUsage positionalBases should have copy of self at each position"""
     b = BaseUsage('A')
     p = b.positionalBases()
     for i in p:
         assert i is not b
         self.assertEqual(i, {'A': 1, 'U': 0, 'C': 0, 'G': 0})