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')
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')