tests: cover exp init

This commit is contained in:
Saugat Pachhai (सौगात)
2021-11-19 18:58:23 +05:45
committed by Saugat Pachhai
parent a70b3087b4
commit cb941a836d
5 changed files with 624 additions and 48 deletions
+11
View File
@@ -69,3 +69,14 @@ def console_width(console, width):
finally:
console_options.max_width = original
console._width = con_width
class ANY:
def __init__(self, expected_type):
self.expected_type = expected_type
def __repr__(self):
return "Any" + self.expected_type.__name__.capitalize()
def __eq__(self, other):
return isinstance(other, self.expected_type)