예제 #1
0
 def test_not_a_string(self):
     string = 12345
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(string, converted)
예제 #2
0
 def test_trailing_space(self):
     string = 'http://example.com  '
     expected = 'http://example.com'
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(expected, converted)
예제 #3
0
 def test_space_between(self):
     string = 'http://example.com/space between url '
     expected = 'http://example.com/space between url'
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(expected, converted)
예제 #4
0
def test_space_between():
    string = "http://example.com/space between url "
    expected = "http://example.com/space between url"
    converted = converters.remove_whitespace(string, {})
    assert expected == converted
예제 #5
0
def test_not_a_string():
    string = 12345
    converted = converters.remove_whitespace(string, {})
    assert string == converted
예제 #6
0
def test_trailing_space():
    string = "http://example.com  "
    expected = "http://example.com"
    converted = converters.remove_whitespace(string, {})
    assert expected == converted
예제 #7
0
 def test_not_a_string(self):
     string = 12345
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(string, converted)
예제 #8
0
 def test_space_between(self):
     string = 'http://example.com/space between url '
     expected = 'http://example.com/space between url'
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(expected, converted)
예제 #9
0
 def test_trailing_space(self):
     string = 'http://example.com  '
     expected = 'http://example.com'
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(expected, converted)
예제 #10
0
 def test_leading_space(self):
     string = "  http://example.com"
     expected = "http://example.com"
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(expected, converted)