Move _handle_aliases() out of basic.py (#48578)

Refinements:
- return legal_inputs and update class properties
- remove redundant arguments from method and handle in caller
- add better exception types to method

* Add unit tests for handle_aliases
This commit is contained in:
Sam Doran 2019-02-28 16:43:19 -05:00 committed by GitHub
parent 1c87ea6fa6
commit 2a98faee2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 189 additions and 47 deletions

View file

@ -62,6 +62,7 @@ def fake_stat(mocker):
stat1.st_mode = 0o0644
stat1.st_uid = 0
stat1.st_gid = 0
stat1.st_flags = 0
yield stat1