def test_and(self):
     ret = functions.c_and('Thing 1', 'Thing 2')
     self.assertEqual(ret['Fn::And'], ['Thing 1', 'Thing 2'])
 def test_and_max(self):
     with self.assertRaises(exceptions.IntrinsicFuncInputError) as ctx:
         functions.c_and(*['%d Condition' % i for i in range(20)])
     self.assertEqual(ctx.exception.message,
         functions.c_and._errmsg_max)
 def test_and_min(self):
     with self.assertRaises(exceptions.IntrinsicFuncInputError) as ctx:
         functions.c_and('1 Condition')
     self.assertEqual(ctx.exception.message,
         functions.c_and._errmsg_min)
Exemplo n.º 4
0
 def test_and(self):
     ret = functions.c_and('Thing 1', 'Thing 2')
     self.assertEqual(ret['Fn::And'], ['Thing 1', 'Thing 2'])
Exemplo n.º 5
0
 def test_and_max(self):
     with self.assertRaises(exceptions.IntrinsicFuncInputError) as ctx:
         functions.c_and(*['%d Condition' % i for i in range(20)])
     self.assertEqual(ctx.exception.message, functions.c_and._errmsg_max)
Exemplo n.º 6
0
 def test_and_min(self):
     with self.assertRaises(exceptions.IntrinsicFuncInputError) as ctx:
         functions.c_and('1 Condition')
     self.assertEqual(ctx.exception.message, functions.c_and._errmsg_min)