feat(py-monitor): add test_core.py()
This commit is contained in:
1 parent
37be7a5525
commit
c1e2b364f4
1 file changed
+4
@@ -15,6 +15,10 @@ class UrlTests(unittest.TestCase):
|
||||
url = "https://media.example.com/abc.jpg_progressive_thumbnail"
|
||||
self.assertEqual("https://media.example.com/abc.jpg", strip_thumbnail_suffix(url))
|
||||
|
||||
def test_strip_is_noop_without_suffix(self):
|
||||
url = "https://media.example.com/abc.jpg"
|
||||
self.assertEqual(url, strip_thumbnail_suffix(url))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user