Exemple #1
0
    def test_build_mutator_with_disable_operator(self):
        parser = commandline.build_parser()
        default_mutator = commandline.build_mutator(parser.parse_args([]))

        mutator = commandline.build_mutator(
            parser.parse_args(['--disable-operator', 'AOR']))
        self.assertEqual(
            len(default_mutator.operators) - 1, len(mutator.operators))
Exemple #2
0
    def test_build_mutator_with_disable_operator(self):
        parser = commandline.build_parser()
        default_mutator = commandline.build_mutator(parser.parse_args([]))

        mutator = commandline.build_mutator(
            parser.parse_args(['--disable-operator', 'AOR']))
        self.assertEqual(len(default_mutator.operators) - 1,
                         len(mutator.operators))
Exemple #3
0
 def test_build_mutator_with_operator(self):
     parser = commandline.build_parser()
     mutator = commandline.build_mutator(
         parser.parse_args(['--operator', 'AOR']))
     self.assertEqual(1, len(mutator.operators))
Exemple #4
0
 def test_build_mutator_with_operator(self):
     parser = commandline.build_parser()
     mutator = commandline.build_mutator(
         parser.parse_args(['--operator', 'AOR']))
     self.assertEqual(1, len(mutator.operators))