~nataliabidart/ubuntuone-client/login-email-password-for-everyone

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_sync.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2011-08-11 21:54:06 UTC
  • mfrom: (1100.3.5 no-makedirs)
  • Revision ID: tarmac-20110811215406-xtcs6ksbs365cdqu
- No more calls to os.makedirs, os.mkdir, os.stat, os.listdir, open(), os.unlink
  (LP: #824095).

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
            fname = os.path.join(self.root, 'a_file')
267
267
            f = open_file(fname, 'w')
268
268
            f.write('hola')
269
 
            os.unlink(fname)
 
269
            remove_file(fname)
270
270
            f.close()
271
271
 
272
272
            fname = os.path.join(self.root, 'b_file')
537
537
 
538
538
        # create the node
539
539
        somepath = os.path.join(self.root, 'somepath')
540
 
        os.mkdir(somepath)
 
540
        make_dir(somepath)
541
541
        mdid = self.fsm.create(somepath, '', node_id='node_id', is_dir=True)
542
542
 
543
543
        # send the event and check args after the ssmr instance
723
723
        """This method should log detailed info."""
724
724
        # create testing data
725
725
        somepath = os.path.join(self.root, 'somepath')
726
 
        open(somepath, "w").close()
 
726
        open_file(somepath, "w").close()
727
727
        oldstat = stat_path(somepath)
728
728
        f = open_file(somepath, "w")
729
729
        f.write("new")