Exemplo n.º 1
0
 def test_absolute_no_prototol_auth(self):
     string = "//name:passwd@myserver"
     self.assertTrue(Bundler.src_is_external(string))
Exemplo n.º 2
0
 def test_none(self):
     string = ""
     self.assertFalse(Bundler.src_is_external(string))
Exemplo n.º 3
0
 def test_absolute_no_prototol_port(self):
     string = "//myserver:1337"
     self.assertTrue(Bundler.src_is_external(string))
Exemplo n.º 4
0
 def test_absolute_no_protocol(self):
     string = "//myserver"
     self.assertTrue(Bundler.src_is_external(string))
Exemplo n.º 5
0
 def test_relative_suspisious(self):
     string = "some/path?foo://bar"
     self.assertFalse(Bundler.src_is_external(string))
Exemplo n.º 6
0
 def test_relative_double(self):
     string = "some//path/"
     self.assertFalse(Bundler.src_is_external(string))
Exemplo n.º 7
0
 def test_relative_root(self):
     string = "/some/path"
     self.assertFalse(Bundler.src_is_external(string))