How to use the vcard.vcard.parse_arguments function in vcard

To help you get started, we’ve selected a few vcard examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github l0b0 / vcard / tests / test_vcard.py View on Github external
def test_parse_arguments_verbose_off_by_default(self):
        path = '/some/path'

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

        self.assertFalse(actual_verbosity)
github l0b0 / vcard / tests / test_vcard.py View on Github external
def test_parse_arguments_sets_verbose_when_passed(self):
        path = '/some/path'

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

        self.assertTrue(actual_verbosity)
github l0b0 / vcard / tests / test_vcard.py View on Github external
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)