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

« back to all changes in this revision

Viewing changes to test/unit/common/middleware/test_memcache.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Soren Hansen, Chuck Short
  • Date: 2012-09-07 19:02:36 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20120907190236-fqrmbzm7v6zivs8d
Tags: 1.7.0-0ubuntu1
[ Soren Hansen ]
* Update debian/watch to account for symbolically named tarballs and
  use newer URL.
* Run unit tests at build time.
* Fix Launchpad URLs in debian/watch.

[ Chuck Short ]
* New upstream release
* debian/control: Add pubthon-moc as a build dep
* debian/rules: Dont fail if testsuite fails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        if section == 'memcache':
48
48
            if option == 'memcache_servers':
49
49
                return '1.2.3.4:5'
 
50
            elif option == 'memcache_serialization_support':
 
51
                return '2'
50
52
            else:
51
53
                raise NoOptionError(option)
52
54
        else:
86
88
        exc = None
87
89
        try:
88
90
            app = memcache.MemcacheMiddleware(
89
 
                    FakeApp(), {'memcache_servers': '1.2.3.4:5'})
 
91
                    FakeApp(), {'memcache_servers': '1.2.3.4:5',
 
92
                                'memcache_serialization_support': '2'})
90
93
        except Exception, err:
91
94
            exc = err
92
95
        finally: