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