Beispiel #1
0
 def test_mutate_is_implemented(self):
     """
     Ensures that we have a mutate method implemented.
     """
     genome = Genome(["c", "a", "t"])
     self.assertNotEqual(NotImplemented,
                         genome.mutate(2, 0.2, ["d", "o", "g"]))
Beispiel #2
0
 def test_mutate_is_implemented(self):
     """
     Ensures that we have a mutate method implemented.
     """
     genome = Genome(['c', 'a', 't'])
     self.assertNotEqual(NotImplemented,
                         genome.mutate(2, 0.2, ['d', 'o', 'g']))
Beispiel #3
0
 def test_mutate_is_implemented(self):
     """
     Ensures that we have a mutate method implemented.
     """
     genome = Genome(['c', 'a', 't'])
     self.assertNotEqual(NotImplemented, genome.mutate(2, 0.2,
         ['d', 'o', 'g']))