Merge "[fuel] Skip test_server_basic_ops tempest test"
[functest.git] / functest / tests / unit / test_utils.py
1 #!/usr/bin/env python
2
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7
8 import re
9
10
11 class RegexMatch(str):
12     def __eq__(self, other):
13         match = re.search(self, other)
14         if match:
15             return True
16         return False
17
18
19 class SubstrMatch(str):
20     def __eq__(self, other):
21         if self in other:
22             return True
23         return False