Exemplo n.º 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"]))
Exemplo n.º 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']))
Exemplo n.º 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']))