File: test_arguments.py

package info (click to toggle)
borgmatic 2.0.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,752 kB
  • sloc: python: 58,506; sh: 150; makefile: 8; javascript: 5
file content (10 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from borgmatic.actions import arguments as module


def test_update_arguments_copies_and_updates_without_modifying_original():
    original = module.argparse.Namespace(foo=1, bar=2, baz=3)

    result = module.update_arguments(original, bar=7, baz=8)

    assert original == module.argparse.Namespace(foo=1, bar=2, baz=3)
    assert result == module.argparse.Namespace(foo=1, bar=7, baz=8)