Merge lp:~pedro/mago/brasero-tests into lp:~mago-contributors/mago/mago-1.0
Proposed by
Pedro Villavicencio
Status: | Merged |
---|---|
Merged at revision: | 141 |
Proposed branch: | lp:~pedro/mago/brasero-tests |
Merge into: | lp:~mago-contributors/mago/mago-1.0 |
Diff against target: |
256 lines (+228/-0) 5 files modified
brasero/README (+16/-0) brasero/brasero_basics.py (+20/-0) brasero/brasero_basics.xml (+15/-0) mago/application/brasero.py (+145/-0) mago/test_suite/brasero.py (+32/-0) |
To merge this branch: | bzr merge lp:~pedro/mago/brasero-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jean-Baptiste Lallement | Approve | ||
Review via email:
|
This proposal supersedes a proposal from 2010-11-15.
Description of the change
Added a Brasero basic test, that burns a directory into an ISO file.
To post a comment you must log in.
Thanks for your work. I've a few comments though.
* in mago/test_ suite/brasero. py n.close( ) should be enough. n/brasero. py brasero_ basics. py) context( self.name)
- The cleanup code is superfluous. If you really want to close the app during cleanup a call to self.applicatio
- The cleanup method could also remove the brasero.iso that the test just created
* mago/applicatio
- If /tmp/brasero.iso already exist then the test fails because a dialog is displayed asking to overwrite that file. Either check the existence of this dialog or remove /tmp/brasero.iso as a precondition of the test.
* General comment about style:
I'm not a style maniac, far from it, but there are some improvements here.
- Don't mix tabs and spaces for indentation (brasero/
- I know that spaces are cheap but don't use them between the function name and the args e.g
NO: brasero = ooldtp.context (self.name)
YES: brasero = ooldtp.
NO: brasero.getchild (self.BTN_ BURN).click () getchild( self.BTN_ BURN).click( )
YES: brasero.
More infos at http:// www.python. org/dev/ peps/pep- 0008/
I'll be happy to review it again after the changes.