def test_set_crud(self): pp = [{"nam":"India","states":["Maharashtra","Karnatka"],"cities":["Aurangabad","Bangalore"],"zip":"d6","zips":[431005,431001],"iso":"IN","stateiso":["MH","KR"],"phoneregex":"+91","localnam":"Hindustan","altname":["None"]},{"nam":"United States of America","states":["California","Texas"],"cities":["San Francisco","Denver"],"zip":"\d4","zips":["None","Empty"],"iso":"US","stateiso":["CA","CO"],"phoneregex":"+1","localnam":"USA","altname":["America","United States"]}] db = Connection()['rontest'] db.safe = True test = db['test'] test.remove() print test.insert(pp)
def test_crud(self): db = Connection()['rontest'] db.safe = True test = db['test'] if test: print test.find().explain() #for x in cur: # print x print 'Read works' data = {"one":1,"two":2,"three":3} data1 = {"tone":1,"ttwo":2,"tthree":3} print test.remove() print test.insert(data) print test.save(data1) self.assertTrue(True,True)