Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: tools/web_bluetooth/compact_blocklist_unittest.py

Issue 2554253002: bluetooth: web: Rename Blacklist to Blocklist (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/web_bluetooth/compact_blocklist.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/web_bluetooth/compact_blocklist_unittest.py
diff --git a/tools/web_bluetooth/compact_blacklist_unittest.py b/tools/web_bluetooth/compact_blocklist_unittest.py
similarity index 82%
rename from tools/web_bluetooth/compact_blacklist_unittest.py
rename to tools/web_bluetooth/compact_blocklist_unittest.py
index 7df1140942ef3b825b89fa54c65f52addd27637a..a3696efa326f1715915a33116857ab07c17a4dae 100755
--- a/tools/web_bluetooth/compact_blacklist_unittest.py
+++ b/tools/web_bluetooth/compact_blocklist_unittest.py
@@ -4,11 +4,11 @@
# found in the LICENSE file.
import collections
-import compact_blacklist as cb
+import compact_blocklist as cb
import unittest
-class CompactBlacklistTest(unittest.TestCase):
+class CompactBlocklistTest(unittest.TestCase):
def TestValidUUID(self):
self.assertTrue( cb.ValidUUID('00000000-0000-0000-0000-000000000000'))
self.assertTrue( cb.ValidUUID('01234567-89ab-cdef-0123-456789abcdef'))
@@ -42,31 +42,31 @@ class CompactBlacklistTest(unittest.TestCase):
'01234567089ab0cdef001230456789abcdef')
def TestProcess(self):
- blacklist = collections.OrderedDict()
+ blocklist = collections.OrderedDict()
try:
- cb.Process('# comment', blacklist)
- cb.Process('', blacklist)
+ cb.Process('# comment', blocklist)
+ cb.Process('', blocklist)
except Exception:
self.fail('Failed test for comment or blank line.')
self.assertRaises(cb.BadLineException, cb.Process,
- '00001812-0000-1000-8000-00805f9b34fb exclude-write exclude', blacklist)
+ '00001812-0000-1000-8000-00805f9b34fb exclude-write exclude', blocklist)
self.assertRaises(cb.InvalidExclusionException, cb.Process,
- '00001812-0000-1000-8000-00805f9b34fb exclude-write', blacklist)
+ '00001812-0000-1000-8000-00805f9b34fb exclude-write', blocklist)
self.assertRaises(cb.InvalidExclusionException, cb.Process,
- '00001812-0000-1000-8000-00805f9b34fb exclude', blacklist)
+ '00001812-0000-1000-8000-00805f9b34fb exclude', blocklist)
try:
cb.Process('00001812-0000-1000-8000-00805f9b34fa exclude-writes',
- blacklist)
+ blocklist)
cb.Process('00001812-0000-1000-8000-00805f9b34fb exclude-reads',
- blacklist)
- cb.Process('00001812-0000-1000-8000-00805f9b34fc', blacklist)
+ blocklist)
+ cb.Process('00001812-0000-1000-8000-00805f9b34fc', blocklist)
except Exception:
self.fail('Failed test for valid lines.')
self.assertRaises(cb.DuplicateUUIDException, cb.Process,
- '00001812-0000-1000-8000-00805f9b34fa exclude-writes', blacklist)
+ '00001812-0000-1000-8000-00805f9b34fa exclude-writes', blocklist)
if __name__ == '__main__':
« no previous file with comments | « tools/web_bluetooth/compact_blocklist.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698