We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 341bd9c commit 500cf9cCopy full SHA for 500cf9c
1 file changed
test.py
@@ -112,6 +112,18 @@ def test_skip_level(self):
112
self.assertEqual(len(items), 1)
113
self.assertEqual(items[0].name, "Jane Doe")
114
115
+
116
+class URITest(unittest.TestCase):
117
118
+ def test_get_domain(self):
119
+ https_start = "https://github.com/edsu/microdata"
120
+ self.assertEqual("github.com", URI.get_domain(https_start))
121
122
+ no_https = "github.com/edsu/microdata"
123
+ self.assertEqual("github.com", URI.get_domain(no_https))
124
125
+ plain = "github.com"
126
+ self.assertEqual(plain, URI.get_domain(plain))
127
128
129
if __name__ == "__main__":
0 commit comments