Beispiel #1
0
    def test_parse_arguments_succeeds_with_single_path(self):
        path = '/some/path'
        expected_paths = [path]

        actual_paths = vcard.parse_arguments([path]).paths

        self.assertEqual(expected_paths, actual_paths)
Beispiel #2
0
    def test_parse_arguments_succeeds_with_single_path(self):
        path = '/some/path'
        expected_paths = [path]

        actual_paths = vcard.parse_arguments([path]).paths

        self.assertEqual(expected_paths, actual_paths)
Beispiel #3
0
    def test_parse_arguments_succeeds_with_multiple_paths(self):
        path1 = '/some/path'
        path2 = '/other/path'
        arguments = [path1, path2]
        expected_paths = arguments

        actual_paths = vcard.parse_arguments(arguments).paths

        self.assertEqual(expected_paths, actual_paths)
Beispiel #4
0
    def test_parse_arguments_succeeds_with_multiple_paths(self):
        path1 = '/some/path'
        path2 = '/other/path'
        arguments = [path1, path2]
        expected_paths = arguments

        actual_paths = vcard.parse_arguments(arguments).paths

        self.assertEqual(expected_paths, actual_paths)
Beispiel #5
0
    def test_parse_arguments_sets_verbose_when_passed(self):
        path = '/some/path'

        actual_verbosity = vcard.parse_arguments(['--verbose', path]).verbose

        self.assertTrue(actual_verbosity)
Beispiel #6
0
    def test_parse_arguments_verbose_off_by_default(self):
        path = '/some/path'

        actual_verbosity = vcard.parse_arguments([path]).verbose

        self.assertFalse(actual_verbosity)
Beispiel #7
0
    def test_parse_arguments_sets_verbose_when_passed(self):
        path = '/some/path'

        actual_verbosity = vcard.parse_arguments(['--verbose', path]).verbose

        self.assertTrue(actual_verbosity)
Beispiel #8
0
    def test_parse_arguments_verbose_off_by_default(self):
        path = '/some/path'

        actual_verbosity = vcard.parse_arguments([path]).verbose

        self.assertFalse(actual_verbosity)