~ubuntu-branches/ubuntu/trusty/swift/trusty-updates

« back to all changes in this revision

Viewing changes to test/unit/container/test_sync.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-01-28 09:40:30 UTC
  • mfrom: (1.2.16)
  • Revision ID: package-import@ubuntu.com-20130128094030-aetz57x2qz9ye2d4
Tags: 1.7.6-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
436
436
            fcb = FakeContainerBroker('path',
437
437
                info={'account': 'a', 'container': 'c',
438
438
                      'x_container_sync_point1': 1,
439
 
                      'x_container_sync_point2': -1},
 
439
                      'x_container_sync_point2': 1},
440
440
                metadata={'x-container-sync-to': ('http://127.0.0.1/a/c', 1),
441
441
                          'x-container-sync-key': ('key', 1)},
442
442
                items_since=[{'ROWID': 1, 'name': 'o'}])
445
445
            cs._myport = 1000           # Match
446
446
            cs.allowed_sync_hosts = ['127.0.0.1']
447
447
            cs.container_sync('isa.db')
448
 
            # Succeeds because the two sync points haven't deviated enough yet
 
448
            # Succeeds because the two sync points haven't deviated yet
449
449
            self.assertEquals(cs.container_failures, 0)
450
450
            self.assertEquals(cs.container_skips, 0)
451
451
            self.assertEquals(fcb.sync_point1, -1)