def test_extra_property_multiple_properties(self): test_option_val = '["key=value", "key2=value2"]' actual_mvn_command = [] beam_benchmark_helper.AddExtraProperties(actual_mvn_command, test_option_val) self.assertListEqual(['-Dkey=value', '-Dkey2=value2'], actual_mvn_command)
def test_extra_property_multiple_properties(self): testOptionVal = "[\"key=value\", \"key2=value2\"]" actual_mvn_command = [] beam_benchmark_helper.AddExtraProperties(actual_mvn_command, testOptionVal) self.assertListEqual(["-Dkey=value", "-Dkey2=value2"], actual_mvn_command)
def test_extra_property_single_property_quoted(self): test_option_val = '["key=value"]' actual_mvn_command = [] beam_benchmark_helper.AddExtraProperties(actual_mvn_command, test_option_val) self.assertListEqual(['-Dkey=value'], actual_mvn_command)
def test_extra_property_empty_property(self): test_option_val = '' actual_command = [] beam_benchmark_helper.AddExtraProperties(actual_command, test_option_val) self.assertListEqual([], actual_command)
def test_integrationPipelineOptions_rejection(self): test_option_val = '["integrationTestPipelineOptions=..."]' actual_mvn_command = [] with self.assertRaises(ValueError): beam_benchmark_helper.AddExtraProperties(actual_mvn_command, test_option_val)
def test_extra_property_single_property_quoted(self): testOptionVal = "[\"key=value\"]" actual_mvn_command = [] beam_benchmark_helper.AddExtraProperties(actual_mvn_command, testOptionVal) self.assertListEqual(["-Dkey=value"], actual_mvn_command)