Пример #1
0
 def test_parse_url04(self):
     self.assertEqual(parse_url("rss://localhost:9000"),
                      (True, 'localhost', 9000))
Пример #2
0
 def test_parse_url02(self):
     self.assertEqual(parse_url("rss://localhost"),
                      (True, 'localhost', 443))
Пример #3
0
 def test_parse_url03(self):
     self.assertEqual(parse_url("rs://localhost:9000"),
                      (False, 'localhost', 9000))
Пример #4
0
 def test_parse_url18(self):
     self.assertEqual(parse_url("rss://unix:../file.sock"),
                      (True, 'unix', '../file.sock'))
Пример #5
0
 def test_parse_url01(self):
     self.assertEqual(parse_url("rs://localhost"), (False, 'localhost', 80))
Пример #6
0
 def test_parse_url15(self):
     self.assertEqual(parse_url("rs://unix:../file.sock"),
                      (False, 'unix', '../file.sock'))
Пример #7
0
 def test_parse_url17(self):
     self.assertEqual(parse_url("rss://unix:/tmp/file.sock"),
                      (True, 'unix', '/tmp/file.sock'))
 def test_parse_url04(self):
     self.assertEqual(parse_url("rss://localhost:9000"), (True, 'localhost', 9000))
Пример #9
0
 def test_parse_url14(self):
     self.assertEqual(parse_url("rs://unix:/tmp/file.sock"),
                      (False, 'unix', '/tmp/file.sock'))
 def test_parse_url02(self):
     self.assertEqual(parse_url("rss://localhost"), (True, 'localhost', 443))
 def test_parse_url03(self):
     self.assertEqual(parse_url("rs://localhost:9000"), (False, 'localhost', 9000))
 def test_parse_url01(self):
     self.assertEqual(parse_url("rs://localhost"), (False, 'localhost', 80))
 def test_parse_url18(self):
     self.assertEqual(parse_url("rss://unix:../file.sock"), (True, 'unix', '../file.sock'))
 def test_parse_url17(self):
     self.assertEqual(parse_url("rss://unix:/tmp/file.sock"), (True, 'unix', '/tmp/file.sock'))
 def test_parse_url15(self):
     self.assertEqual(parse_url("rs://unix:../file.sock"), (False, 'unix', '../file.sock'))
 def test_parse_url14(self):
     self.assertEqual(parse_url("rs://unix:/tmp/file.sock"), (False, 'unix', '/tmp/file.sock'))