コード例 #1
0
 def test_ava_different(self):
     # is_ava_value_equal returns False if the values aren't the same.
     self.assertFalse(common_ldap.is_ava_value_equal('cn', 'val1', 'val2'))
コード例 #2
0
 def test_ava_equal_complex(self):
     # is_ava_value_equal returns True if the two values are the same using
     # a value that's got different capitalization and insignificant chars.
     val1 = 'before   after'
     val2 = '  BEFORE  afTer '
     self.assertTrue(common_ldap.is_ava_value_equal('cn', val1, val2))
コード例 #3
0
 def test_ava_equal_same(self):
     # is_ava_value_equal returns True if the two values are the same.
     value = 'val1'
     self.assertTrue(common_ldap.is_ava_value_equal('cn', value, value))
コード例 #4
0
ファイル: test_ldap_common.py プロジェクト: mahak/keystone
 def test_ava_different(self):
     # is_ava_value_equal returns False if the values aren't the same.
     self.assertFalse(common_ldap.is_ava_value_equal('cn', 'val1', 'val2'))
コード例 #5
0
ファイル: test_ldap_common.py プロジェクト: mahak/keystone
 def test_ava_equal_complex(self):
     # is_ava_value_equal returns True if the two values are the same using
     # a value that's got different capitalization and insignificant chars.
     val1 = 'before   after'
     val2 = '  BEFORE  afTer '
     self.assertTrue(common_ldap.is_ava_value_equal('cn', val1, val2))
コード例 #6
0
ファイル: test_ldap_common.py プロジェクト: mahak/keystone
 def test_ava_equal_same(self):
     # is_ava_value_equal returns True if the two values are the same.
     value = 'val1'
     self.assertTrue(common_ldap.is_ava_value_equal('cn', value, value))