示例#1
0
 def test_all_2(self):
     table_name = 'testing'
     c_1 = Column(str, 'column_1')
     c_2 = Column(str, 'column_2')
     q = Query([c_1, c_2], table_name)
     response = q.all(fakeSessionEmptyData)
     self.assertEqual({}, response)
示例#2
0
 def test_all_1(self):
     table_name = 'testing'
     c_1 = Column(str, 'column_1')
     c_2 = Column(str, 'column_2')
     q = Query([c_1, c_2], table_name)
     response = q.all(fakeSessionValidData)
     self.assertEqual([{'a': 10}, {'b': 20}], response)