Exemple #1
0
 def test_not_a_string(self):
     string = 12345
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(string, converted)
Exemple #2
0
 def test_trailing_space(self):
     string = 'http://example.com  '
     expected = 'http://example.com'
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(expected, converted)
Exemple #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)
Exemple #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
Exemple #5
0
def test_not_a_string():
    string = 12345
    converted = converters.remove_whitespace(string, {})
    assert string == converted
Exemple #6
0
def test_trailing_space():
    string = "http://example.com  "
    expected = "http://example.com"
    converted = converters.remove_whitespace(string, {})
    assert expected == converted
Exemple #7
0
 def test_not_a_string(self):
     string = 12345
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(string, converted)
Exemple #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)
Exemple #9
0
 def test_trailing_space(self):
     string = 'http://example.com  '
     expected = 'http://example.com'
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(expected, converted)
 def test_leading_space(self):
     string = "  http://example.com"
     expected = "http://example.com"
     converted = converters.remove_whitespace(string, {})
     self.assertEqual(expected, converted)