示例#1
0
 def test_both_args_and_additional(self):
     """Test both APP_ARGS and additional args."""
     os.environ['APP_ARGS'] = 'arg1'
     self.fs.create_file('/flags-testcase', contents='arg2')
     self.assertEqual(
         'arg1 arg2',
         testcase_manager.get_command_line_flags('/fuzz-testcase'))
 def test_no_args_and_additional(self):
   """Test both APP_ARGS and additional args."""
   self.assertEqual('',
                    testcase_manager.get_command_line_flags('/fuzz-testcase'))
 def test_only_additional(self):
   """Test both APP_ARGS and additional args."""
   self.fs.create_file('/flags-testcase', contents='arg2')
   self.assertEqual('arg2',
                    testcase_manager.get_command_line_flags('/fuzz-testcase'))
 def test_only_args(self):
   """Test both APP_ARGS and additional args."""
   os.environ['APP_ARGS'] = 'arg1'
   self.assertEqual('arg1',
                    testcase_manager.get_command_line_flags('/fuzz-testcase'))