Merge lp:~gmb/lpsetup/death-to-doctests-in-subcommands into lp:lpsetup
Proposed by
Graham Binns
on 2012-07-11
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2012-07-11 |
| Approved revision: | 52 |
| Merged at revision: | 51 |
| Proposed branch: | lp:~gmb/lpsetup/death-to-doctests-in-subcommands |
| Merge into: | lp:lpsetup |
| Diff against target: |
236 lines (+114/-83) 2 files modified
lpsetup/subcommands/inithost.py (+2/-82) lpsetup/tests/subcommands/test_inithost.py (+112/-1) |
| To merge this branch: | bzr merge lp:~gmb/lpsetup/death-to-doctests-in-subcommands |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2012-07-11 | Approve on 2012-07-11 |
|
Review via email:
|
|||
Commit Message
The doctests in the subcommands package have been turned into unit tests.
Description of the Change
This branch removes all the subcommands doctests and turns them into unit tests. I'll tackle other doctests in separate branches.
To post a comment you must log in.
lp:~gmb/lpsetup/death-to-doctests-in-subcommands
updated
on 2012-07-11
- 50. By Graham Binns on 2012-07-11
-
Fixed conflicts and lint.
lp:~gmb/lpsetup/death-to-doctests-in-subcommands
updated
on 2012-07-11
- 51. By Graham Binns on 2012-07-11
-
Bitwise funk.
- 52. By Graham Binns on 2012-07-11
-
Test tweak.

Looks good Graham.
On IRC we discussed:
1) ORing the expected file stat masks together and then using XOR with the actual mode to allow a single assertion.
2) Taking into account the new behavior of write_file_contents where it no longer added the \n.
Thanks,
Brad