~brendan-donegan/checkbox/0.15.2

« back to all changes in this revision

Viewing changes to plainbox/plainbox/impl/test_resource.py

  • Committer: brendan-donegan
  • Date: 2013-02-08 17:02:12 UTC
  • Revision ID: brendan.donegan@canonical.com-20130208170212-t27ag1qtbhj8argv
* New upstream release (LP: #1119529)
* Bumped revision number to 0.15.1 and restored previous trunk changelog.
* jobs/peripheral.txt.in: fixed string with repeated "add" (LP: #1102665) 
* scripts/graphics_stress_test: added missing import (LP: #1102812)
* scripts/rendercheck_test - added missing import for errno (LP: #1103343)
  jobs/rendercheck.txt.in - fixed command string to report the correct exit
  code to checkbox

* Converted kvm virtualization test to python3. Test will use parameters
  in config file in the event the system under test does not have internet
  access. Updated jobs/virtualization.txt.in

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
        expr = ResourceExpression("obj.a == 2")
274
274
        self.assertRaises(TypeError, expr.evaluate, [{'a': 2}])
275
275
 
 
276
    def test_encode(self):
 
277
        text = "device.category == 'CAPTURE'"
 
278
        expr = ResourceExpression(text)
 
279
        expr_enc = expr._get_persistance_subset()
 
280
        self.assertEqual(expr_enc['_text'], text)
 
281
 
276
282
 
277
283
class ResourceProgramTests(TestCase):
278
284