Ejemplo n.º 1
0
 def test_substitute_keys_2(self):
     ppln = CheckKeySubstitutions(factory=self.factory,
                                  integer='string_instead',
                                  string_sub=3131)
     test_filter = ppln.getf('test_key_substitutions')
     self.assertEqual(test_filter.first_key, 'string_instead')
     self.assertEqual(test_filter.second_key, 'do_not_3131_this')
Ejemplo n.º 2
0
 def test_substitute_keys_2(self):
     ppln = CheckKeySubstitutions(factory=self.factory,
                                  integer='string_instead',
                                  string_sub=3131)
     test_filter = ppln.getf('test_key_substitutions')
     self.assertEqual(test_filter.first_key, 'string_instead')
     self.assertEqual(test_filter.second_key, 'do_not_3131_this')
Ejemplo n.º 3
0
 def test_substitute_keys_1(self):
     ppln = CheckKeySubstitutions(factory=self.factory)
     test_filter = ppln.getf('test_key_substitutions')
     self.assertEqual(test_filter.first_key, 213)
     self.assertEqual(test_filter.second_key, 'do_not_process_this')
Ejemplo n.º 4
0
 def test_substitute_keys_1(self):
     ppln = CheckKeySubstitutions(factory=self.factory)
     test_filter = ppln.getf('test_key_substitutions')
     self.assertEqual(test_filter.first_key, 213)
     self.assertEqual(test_filter.second_key, 'do_not_process_this')