示例#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"]))
示例#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']))
示例#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']))