about summary refs log tree commit diff
path: root/universe/ac_types/regex.py
diff options
context:
space:
mode:
Diffstat (limited to 'universe/ac_types/regex.py')
-rw-r--r--universe/ac_types/regex.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/universe/ac_types/regex.py b/universe/ac_types/regex.py
deleted file mode 100644
index e5203bedfae4..000000000000
--- a/universe/ac_types/regex.py
+++ /dev/null
@@ -1,18 +0,0 @@
-import re
-from test_utils import simple_assert
-
-
-def remove(regex, x):
-    """Attempt to remove the substring matching `re` from `x`."""
-    return re.sub(regex, '', x)
-
-
-# No occurence
-simple_assert(remove(r'\s\([\w\s]+\)$', 'Atlas.CustomerId'),
-              'Atlas.CustomerId',
-              name="remove")
-# Single occurence
-simple_assert(remove(r'\s\([\w\s]+\)$',
-                     'Atlas.CustomerId (adjusted for MCC IDs)'),
-              'Atlas.CustomerId',
-              name="remove")