def test_rejects_local_path_containing_url(self): self.assertFalse(base_utils.is_url("somedir/http://path/file"))
def test_rejects_local_filename(self): self.assertFalse(base_utils.is_url("filename"))
def test_rejects_relative_local_path(self): self.assertFalse(base_utils.is_url("somedir/somesubdir/file"))
def test_accepts_ftp(self): self.assertTrue(base_utils.is_url("ftp://ftp.example.com"))
def test_rejects_local_path(self): self.assertFalse(base_utils.is_url("/home/username/file"))
def test_accepts_http(self): self.assertTrue(base_utils.is_url("http://example.com"))