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