예제 #1
0
파일: tests_mock.py 프로젝트: cfe-lab/Kive
    def test_write_inputs_divider(self):
        app = ContainerApp()
        expected_inputs = '--greetings_csv* -- names_csv'

        app.write_inputs(expected_inputs)
        inputs = app.inputs

        self.assertEqual(expected_inputs, inputs)
예제 #2
0
파일: tests_mock.py 프로젝트: cfe-lab/Kive
    def test_write_input_multiple(self):
        app = ContainerApp()
        expected_inputs = 'greetings_csv* names_csv'

        app.write_inputs(expected_inputs)
        inputs = app.inputs

        self.assertEqual(expected_inputs, inputs)
예제 #3
0
파일: tests_mock.py 프로젝트: cfe-lab/Kive
    def test_write_inputs_divider(self):
        app = ContainerApp()
        expected_inputs = '--greetings_csv* -- names_csv'

        app.write_inputs(expected_inputs)
        inputs = app.inputs

        self.assertEqual(expected_inputs, inputs)
예제 #4
0
파일: tests_mock.py 프로젝트: cfe-lab/Kive
    def test_write_input_multiple(self):
        app = ContainerApp()
        expected_inputs = 'greetings_csv* names_csv'

        app.write_inputs(expected_inputs)
        inputs = app.inputs

        self.assertEqual(expected_inputs, inputs)
예제 #5
0
파일: tests_mock.py 프로젝트: cfe-lab/Kive
 def test_write_input_bad_multiple(self):
     app = ContainerApp()
     with self.assertRaisesRegex(ValueError,
                                 r'Invalid argument name: greetings_csv/'):
         app.write_inputs('greetings_csv/ names_csv')
예제 #6
0
파일: tests_mock.py 프로젝트: cfe-lab/Kive
 def test_write_input_bad_multiple(self):
     app = ContainerApp()
     with self.assertRaisesRegexp(ValueError,
                                  r'Invalid argument name: greetings_csv/'):
         app.write_inputs('greetings_csv/ names_csv')