def test_write_optional(self): app = ContainerApp() expected_outputs = '--greetings_csv names_csv' app.write_outputs(expected_outputs) outputs = app.outputs self.assertEqual(expected_outputs, outputs)
def test_write_output_multiple(self): app = ContainerApp() expected_outputs = 'greetings_csv/ names_csv' app.write_outputs(expected_outputs) outputs = app.outputs self.assertEqual(expected_outputs, outputs)
def test_write_output_multiple(self): app = ContainerApp() expected_outputs = 'greetings_csv/ names_csv' app.write_outputs(expected_outputs) outputs = app.outputs self.assertEqual(expected_outputs, outputs)
def test_write_optional(self): app = ContainerApp() expected_outputs = '--greetings_csv names_csv' app.write_outputs(expected_outputs) outputs = app.outputs self.assertEqual(expected_outputs, outputs)
def test_write_output_bad_multiple(self): app = ContainerApp() with self.assertRaisesRegex(ValueError, r'Invalid argument name: greetings_csv*'): app.write_outputs('greetings_csv* names_csv')
def test_write_arguments_bad_name(self): app = ContainerApp() with self.assertRaisesRegex(ValueError, r'Invalid argument name: @greetings_csv'): app.write_outputs('@greetings_csv names_csv')
def test_write_output_bad_multiple(self): app = ContainerApp() with self.assertRaisesRegexp(ValueError, r'Invalid argument name: greetings_csv*'): app.write_outputs('greetings_csv* names_csv')
def test_write_arguments_bad_name(self): app = ContainerApp() with self.assertRaisesRegexp(ValueError, r'Invalid argument name: @greetings_csv'): app.write_outputs('@greetings_csv names_csv')