コード例 #1
0
ファイル: test_column.py プロジェクト: cash2one/big-data-orm
 def test_in_op(self):
     c_1 = Column(str, 'c_1')
     r = c_1.in_(['t1', 't2'])
     expected_r = {
         'type': 'and',
         'signal': 'IN',
         'left_value': 'c_1',
         'left_value_type': str,
         'right_value': ['t1', 't2'],
         'right_value_type': list
     }
     self.assertEqual(expected_r, r)
コード例 #2
0
ファイル: test_column.py プロジェクト: cash2one/big-data-orm
 def test_in_op_error(self):
     c_1 = Column(str, 'c_1')
     r = c_1.in_('t2')
     expected_r = {}
     self.assertEqual(expected_r, r)