Beispiel #1
0
 def test_should_pass_simple_string_without_trimming_anything(self):
     self.assertEqual('foobar', _trim_underscores('foobar'))
Beispiel #2
0
 def test_should_remove_trailing_underscore(self):
     self.assertEqual('foobar', _trim_underscores('foobar_'))
Beispiel #3
0
 def test_should_trim_underscores(self):
     self.assertEqual('foobar', _trim_underscores('_foobar_'))
Beispiel #4
0
 def test_should_remove_leading_underscore(self):
     self.assertEqual('foobar', _trim_underscores('_foobar'))
 def test_should_pass_simple_string_without_trimming_anything(self):
     self.assertEqual('foobar', _trim_underscores('foobar'))
 def test_should_trim_underscores(self):
     self.assertEqual('foobar', _trim_underscores('_foobar_'))
 def test_should_remove_trailing_underscore(self):
     self.assertEqual('foobar', _trim_underscores('foobar_'))
 def test_should_remove_leading_underscore(self):
     self.assertEqual('foobar', _trim_underscores('_foobar'))