~cjwatson/storm/expr-spacing

« back to all changes in this revision

Viewing changes to storm/tests/sqlobject.py

  • Committer: Colin Watson
  • Date: 2019-08-14 13:36:13 UTC
  • mfrom: (510.9.1 py3-scoping)
  • Revision ID: cjwatson@canonical.com-20190814133613-ft2mbia5d4k02ozn
Adjust tests to cope with tighter scoping rules in Python 3. [r=doismellburning]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1219
1219
        self.assertEquals([person.name for person in result],
1220
1220
                          [u"John Doe"])
1221
1221
 
1222
 
        person.name = u"Funny !%_ Name"
 
1222
        result[0].name = u"Funny !%_ Name"
1223
1223
 
1224
1224
        expr = NOT(CONTAINSSTRING(self.Person.q.name, u"!%_"))
1225
1225
        result = self.Person.select(expr)