~ethan.chang/savilerow/add-welcome-background

« back to all changes in this revision

Viewing changes to tests/core/test_customization_enabled.py

  • Committer: Chris Wayne
  • Date: 2014-04-09 00:12:50 UTC
  • mfrom: (7.1.5 python3-tests)
  • Revision ID: chris.wayne@canonical.com-20140409001250-uez3pla17l5xcp3y
Port tests to python3 so they run with phablet-test-run, also some cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#: Flag to indicate pre-loaded sample content has been copied once
5
5
customized_flag_path = os.path.expanduser("~/.customized")
6
6
 
 
7
 
7
8
class GeneralCustomizationEnablement(AutopilotTestCase):
8
9
 
9
10
    def test_customization_enablement(self):
18
19
        The presence of the `~/.customized` flag signals that the sample
19
20
        content has already been copied to the user area, and that it
20
21
        should not be copied again.
21
 
        
 
22
 
22
23
        This implementation allows the user to delete the sample
23
24
        content if desired, but will also properly re-copy the content
24
25
        to a new user after a 'factory reset' event.