Changeset 4748

Show
Ignore:
Timestamp:
06/15/08 19:54:24 (5 months ago)
Author:
chrisz
Message:

Added test for SO SelectResults?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/TurboJson/branches/1.1/turbojson/tests/test_sqlobject.py

    r4580 r4748  
    5858        cj = jsonify.jsonify(c) 
    5959        assert cj == {'customized': True} 
     60 
     61    def test_so_select_result(): 
     62        p = Person(fname="Willy", mi="P", lname="Millowitsch") 
     63        sr = Person.select(Person.q.fname=="Willy") 
     64        srj = jsonify.jsonify(sr) 
     65        assert srj == [p] 
  • projects/TurboJson/trunk/turbojson/tests/test_sqlobject.py

    r4580 r4748  
    5858        cj = jsonify.jsonify(c) 
    5959        assert cj == {'customized': True} 
     60 
     61    def test_so_select_result(): 
     62        p = Person(fname="Willy", mi="P", lname="Millowitsch") 
     63        sr = Person.select(Person.q.fname=="Willy") 
     64        srj = jsonify.jsonify(sr) 
     65        assert srj == [p]