Index: sitescripts/notifications/test/parser.py |
diff --git a/sitescripts/notifications/test/parser.py b/sitescripts/notifications/test/parser.py |
index e5b5e37f7025779f93e1098c3d2e2f8f6c4aa8de..c020a2c5f12e316597fbd2b87484392c317b322a 100644 |
--- a/sitescripts/notifications/test/parser.py |
+++ b/sitescripts/notifications/test/parser.py |
@@ -154,6 +154,19 @@ end = %s |
self.assertEqual(notifications[2]['severity'], 'normal') |
self.assertEqual(notifications[3]['severity'], 'relentless') |
+ def test_urls(self): |
+ self.notification_to_load = [ |
+ ('1', '\nurls = adblockplus.org\n'), |
+ ('1', '\nurls = adblockplus.org eyeo.com\n'), |
+ ] |
+ notifications = parser.load_notifications() |
+ |
+ assert len(notifications) == 2 |
+ assert notifications[0]['urlFilters'] == ['ADBLOCKPLUS.ORG^$document'] |
+ assert notifications[1]['urlFilters'] == [ |
+ 'ADBLOCKPLUS.ORG^$document', |
+ 'EYEO.COM^$document'] |
+ |
if __name__ == '__main__': |
unittest.main() |