Esempio n. 1
0
 def test_should_pass_simple_string_without_trimming_anything(self):
     self.assertEqual('foobar', _trim_underscores('foobar'))
Esempio n. 2
0
 def test_should_remove_trailing_underscore(self):
     self.assertEqual('foobar', _trim_underscores('foobar_'))
Esempio n. 3
0
 def test_should_trim_underscores(self):
     self.assertEqual('foobar', _trim_underscores('_foobar_'))
Esempio n. 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'))