Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def test_GAMutation::SinglePositionTest::t_always_mutate (   self  ) 

Test ability to cause mutations.

Definition at line 111 of file test_GAMutation.py.

00111                              :
        """Test ability to cause mutations.
        """
        mutator = SinglePositionMutation(mutation_rate = 1.0)

        # when we mutate randomly by chance, we expect to get 2/3
        # visible mutations (there are three letters in the alphabet and
        # one change cannot be observed since it is a mutation back to itself)
        expected_percent = .6

        self._always_mutate(mutator, expected_percent)

    def t_never_mutate(self):


Generated by  Doxygen 1.6.0   Back to index