예제 #1
0
 def test_strip_quotes_removes_quotes_from_string_margins(self):
     self.assertEqual('string_with quotes',
                      strip_quotes('\'string_with quotes\''))
예제 #2
0
 def test_strip_quotes_does_not_remove_from_center_of_string(self):
     self.assertEqual('string_""with_quotes',
                      strip_quotes('string_""with_quotes'))
예제 #3
0
 def test_strip_quotes_returns_passed_string_if_no_quotes(self):
     self.assertEqual('string', strip_quotes('string'))
예제 #4
0
 def test_strip_quotes_removes_double_quotes_from_string_edges(self):
     self.assertEqual('string', strip_quotes('"string"'))