Esempio n. 1
0
 def test_replace_small_a_chars(self):
     # Arrange
     r = Replacer()
     string_with_a = '\xe0\xe1\xe2\xe3\xe4\xe5'
     # Act
     string_with_a = r.replace(string_with_a)
     # Assert
     self.assertEqual(string_with_a, 'aaaaaa')
Esempio n. 2
0
 def test_replace_upper_u_chars(self):
     # Arrange
     r = Replacer()
     string_with_u = '\xd9\xda\xdb\xdc'
     # Act
     string_with_u = r.replace(string_with_u)
     # Assert
     self.assertEqual(string_with_u, 'UUUU')
Esempio n. 3
0
 def test_replace_upper_o_chars(self):
     # Arrange
     r = Replacer()
     string_with_o = '\xd2\xd3\xd4\xd5\xd6'
     # Act
     string_with_o = r.replace(string_with_o)
     # Assert
     self.assertEqual(string_with_o, 'OOOOO')
Esempio n. 4
0
 def test_replace_small_u_chars(self):
     # Arrange
     r = Replacer()
     string_with_u = '\xf9\xfa\xfb\xfc'
     # Act
     string_with_u = r.replace(string_with_u)
     # Assert
     self.assertEqual(string_with_u, 'uuuu')
Esempio n. 5
0
 def test_replace_upper_i_chars(self):
     # Arrange
     r = Replacer()
     string_with_i = '\xcc\xcd\xce\xcf'
     # Act
     string_with_i = r.replace(string_with_i)
     # Assert
     self.assertEqual(string_with_i, 'IIII')
Esempio n. 6
0
 def test_replace_small_o_chars(self):
     # Arrange
     r = Replacer()
     string_with_o = '\xf2\xf3\xf4\xf5\xf6'
     # Act
     string_with_o = r.replace(string_with_o)
     # Assert
     self.assertEqual(string_with_o, 'ooooo')
Esempio n. 7
0
 def test_replace_small_i_chars(self):
     # Arrange
     r = Replacer()
     string_with_i = '\xec\xed\xee\xef'
     # Act
     string_with_i = r.replace(string_with_i)
     # Assert
     self.assertEqual(string_with_i, 'iiii')
Esempio n. 8
0
 def test_replace_upper_e_chars(self):
     # Arrange
     r = Replacer()
     string_with_e = '\xc8\xc9\xca\xcb'
     # Act
     string_with_e = r.replace(string_with_e)
     # Assert
     self.assertEqual(string_with_e, 'EEEE')
Esempio n. 9
0
 def test_replace_small_e_chars(self):
     # Arrange
     r = Replacer()
     string_with_e = '\xe8\xe9\xea\xeb'
     # Act
     string_with_e = r.replace(string_with_e)
     # Assert
     self.assertEqual(string_with_e, 'eeee')
Esempio n. 10
0
 def test_replace_upper_a_chars(self):
     # Arrange
     r = Replacer()
     string_with_a = '\xc0\xc1\xc2\xc3\xc4\xc5'
     # Act
     string_with_a = r.replace(string_with_a)
     # Assert
     self.assertEqual(string_with_a, 'AAAAAA')
Esempio n. 11
0
 def test_replacer_exists(self):
     r = Replacer()
     self.assertIsInstance(r, Replacer)