The point of the test seems to:
1- take a photo
2- see that the shutter is disabled (since camera is not ready)
3- reenable shutter (since camera is ready for new snaps)
Observations:
- The time between 2 and 3 can be anything.
- Nothing triggers the final assert, hence it's testing a transition.
- The 'False' assert could already have been done by the time it's 'looked' at.
It's a test that has a high race condition (http:// bazaar. launchpad. net/~phablet- team/camera- app/trunk/ view/head: /tests/ autopilot/ camera_ app/tests/ test_capture. py#L141)
Look at the final 3 lines there:
self.pointing_ device. click()
The point of the test seems to:
1- take a photo
2- see that the shutter is disabled (since camera is not ready)
3- reenable shutter (since camera is ready for new snaps)
Observations:
- The time between 2 and 3 can be anything.
- Nothing triggers the final assert, hence it's testing a transition.
- The 'False' assert could already have been done by the time it's 'looked' at.