예제 #1
0
 def test1(self):
     self.assertEqual(parse_url("http://google.com")[0], "http")
예제 #2
0
 def test5(self):
     with self.assertRaises(TypeError):
         parse_url(None)
예제 #3
0
 def test3(self):
     self.assertEqual(parse_url("http://google.com/oaefae")[2], None)
예제 #4
0
 def test4(self):
     self.assertEqual(parse_url("http://google.com/oaefae")[3], "/oaefae")
예제 #5
0
 def test2(self):
     self.assertEqual(parse_url("http://google.com/fro")[1], "google.com")