Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_parse_arguments_verbose_off_by_default(self):
path = '/some/path'
actual_verbosity = vcard.parse_arguments([path]).verbose
self.assertFalse(actual_verbosity)
def test_parse_arguments_sets_verbose_when_passed(self):
path = '/some/path'
actual_verbosity = vcard.parse_arguments(['--verbose', path]).verbose
self.assertTrue(actual_verbosity)
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)