Example #1
0
 def test_pass_leading_digit(self):
     token = '123simple'
     result = CFVariableMixin.token(token)
     self.assertEqual(result, token)
Example #2
0
 def test_pass_mixture(self):
     token = 'S.imple@one+two_3'
     result = CFVariableMixin.token(token)
     self.assertEqual(result, token)
Example #3
0
 def test_fail_colon(self):
     result = CFVariableMixin.token('nope:')
     self.assertIsNone(result)
Example #4
0
 def test_pass_simple(self):
     token = 'simple'
     result = CFVariableMixin.token(token)
     self.assertEqual(result, token)
Example #5
0
 def test_fail_space(self):
     result = CFVariableMixin.token('nope nope')
     self.assertIsNone(result)
Example #6
0
 def test_fail_leading_at(self):
     result = CFVariableMixin.token('@nope')
     self.assertIsNone(result)
Example #7
0
 def test_fail_leading_underscore(self):
     result = CFVariableMixin.token('_nope')
     self.assertIsNone(result)
Example #8
0
 def test_passthru_None(self):
     result = CFVariableMixin.token(None)
     self.assertIsNone(result)
Example #9
0
 def test_fail_leading_plus(self):
     result = CFVariableMixin.token("+nope")
     self.assertIsNone(result)