示例#1
0
 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
 def test_in_op_error(self):
     c_1 = Column(str, 'c_1')
     r = c_1.in_('t2')
     expected_r = {}
     self.assertEqual(expected_r, r)