Example #1
0
 def test_should_strip_special_character_single_quote(self):
     self.assertEqual('', _strip_special_characters("'"))
Example #2
0
 def test_should_strip_special_character_asterisk(self):
     self.assertEqual('', _strip_special_characters('*'))
Example #3
0
 def test_should_strip_special_character_right_square_bracket(self):
     self.assertEqual('', _strip_special_characters(']'))
Example #4
0
 def test_should_strip_special_character_parens(self):
     self.assertEqual('', _strip_special_characters('('))
     self.assertEqual('', _strip_special_characters(')'))
Example #5
0
 def test_should_strip_special_character_double_quotes(self):
     self.assertEqual('', _strip_special_characters('"'))
Example #6
0
 def test_should_not_strip_normal_characters(self):
     self.assertEqual(
         'foobar', _strip_special_characters(':*[]foo:*[]bar:*[]'))
 def test_should_strip_special_character_parens(self):
     self.assertEqual('', _strip_special_characters('('))
     self.assertEqual('', _strip_special_characters(')'))
 def test_should_strip_special_character_equals(self):
     self.assertEqual('', _strip_special_characters("="))
 def test_should_not_strip_normal_characters(self):
     self.assertEqual('foobar',
                      _strip_special_characters(':*[]foo:*[]bar:*[]'))
 def test_should_strip_special_character_single_quote(self):
     self.assertEqual('', _strip_special_characters("'"))
 def test_should_strip_special_character_greater(self):
     self.assertEqual('', _strip_special_characters(">"))
 def test_should_strip_special_character_right_square_bracket(self):
     self.assertEqual('', _strip_special_characters(']'))
 def test_should_strip_special_character_asterisk(self):
     self.assertEqual('', _strip_special_characters('*'))
 def test_should_strip_special_character_double_quotes(self):
     self.assertEqual('', _strip_special_characters('"'))
Example #15
0
 def test_should_strip_special_character_greater(self):
     self.assertEqual('', _strip_special_characters(">"))
 def test_should_not_strip_simple_string(self):
     self.assertEqual('foobar', _strip_special_characters('foobar'))
Example #17
0
 def test_should_strip_special_character_equals(self):
     self.assertEqual('', _strip_special_characters("="))
Example #18
0
 def test_should_strip_special_character_colon(self):
     self.assertEqual('', _strip_special_characters(':'))
Example #19
0
 def test_should_not_strip_simple_string(self):
     self.assertEqual('foobar', _strip_special_characters('foobar'))
 def test_should_strip_special_character_colon(self):
     self.assertEqual('', _strip_special_characters(':'))