Exemple #1
0
 def test_prep_insignificant_pre_post(self):
     # prep_case_insensitive remove insignificant spaces.
     value = '   value   '
     exp_value = 'value'
     self.assertEqual(exp_value, common_ldap.prep_case_insensitive(value))
Exemple #2
0
 def test_prep_lowercase(self):
     # prep_case_insensitive returns the string with spaces at the front and
     # end and lowercases the value.
     value = 'UPPERCASE VALUE'
     exp_value = value.lower()
     self.assertEqual(exp_value, common_ldap.prep_case_insensitive(value))
Exemple #3
0
 def test_prep(self):
     # prep_case_insensitive returns the string with spaces at the front and
     # end if it's already lowercase and no insignificant characters.
     value = 'lowercase value'
     self.assertEqual(value, common_ldap.prep_case_insensitive(value))
Exemple #4
0
 def test_prep_insignificant_pre_post(self):
     # prep_case_insensitive remove insignificant spaces.
     value = '   value   '
     exp_value = 'value'
     self.assertEqual(exp_value, common_ldap.prep_case_insensitive(value))
Exemple #5
0
 def test_prep_lowercase(self):
     # prep_case_insensitive returns the string with spaces at the front and
     # end and lowercases the value.
     value = 'UPPERCASE VALUE'
     exp_value = value.lower()
     self.assertEqual(exp_value, common_ldap.prep_case_insensitive(value))
Exemple #6
0
 def test_prep(self):
     # prep_case_insensitive returns the string with spaces at the front and
     # end if it's already lowercase and no insignificant characters.
     value = 'lowercase value'
     self.assertEqual(value, common_ldap.prep_case_insensitive(value))