~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/tests/test_binarypackagepath.py

  • Committer: Steve Kowalik
  • Date: 2011-06-21 01:00:53 UTC
  • mto: (7675.1045.510 db-devel)
  • mto: This revision was merged to the branch mainline in revision 13402.
  • Revision ID: stevenk@ubuntu.com-20110621010053-u67xo7dmd0x8kus4
Switch from text to bytea, allowing us to store non-UTF8 data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    layer = DatabaseFunctionalLayer
18
18
 
19
19
    def test_getOrCreate(self):
20
 
        bpp = getUtility(IBinaryPackagePathSet).getOrCreate(u'bin/bash')
21
 
        self.assertEqual(u'bin/bash', bpp.path)
 
20
        bpp = getUtility(IBinaryPackagePathSet).getOrCreate('bin/bash')
 
21
        self.assertEqual('bin/bash', bpp.path)
22
22
 
23
 
    def test_get_or_create_existing(self):
24
 
        orig_bpp = getUtility(IBinaryPackagePathSet).getOrCreate(u'bin/bash')
25
 
        bpp = getUtility(IBinaryPackagePathSet).getOrCreate(u'bin/bash')
 
23
    def test_getOrCreate_existing(self):
 
24
        orig_bpp = getUtility(IBinaryPackagePathSet).getOrCreate('bin/bash')
 
25
        bpp = getUtility(IBinaryPackagePathSet).getOrCreate('bin/bash')
26
26
        self.assertEqual(orig_bpp.id, bpp.id)