Esempio n. 1
0
 def test_whole_sentence(self):
     sentence = "This & that & that & this."
     encoded = "This & that & that & this."
     self.assertEqual(encode_ampersands(sentence), encoded)
Esempio n. 2
0
 def test_copyright(self):
     self.assertEqual(encode_ampersands("©"), "©")
Esempio n. 3
0
 def test_numeric_encoding(self):
     self.assertEqual(encode_ampersands("&"), "&")
Esempio n. 4
0
 def test_a_and_w(self):
     self.assertEqual(encode_ampersands("A&W"), "A&W")
Esempio n. 5
0
 def test_encoded_ampersand(self):
     self.assertEqual(encode_ampersands("&"), "&")
 def test_whole_sentence(self):
     sentence = "This & that & that & this."
     encoded = "This & that & that & this."
     self.assertEqual(encode_ampersands(sentence), encoded)
 def test_numeric_encoding(self):
     self.assertEqual(encode_ampersands("&"), "&")
 def test_copyright(self):
     self.assertEqual(encode_ampersands("©"), "©")
 def test_encoded_ampersand(self):
     self.assertEqual(encode_ampersands("&"), "&")
 def test_a_and_w(self):
     self.assertEqual(encode_ampersands("A&W"), "A&W")