-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
def _are_same(expected, actual, ignore_value_of_keys, ignore_missing_keys=False):
# Check for None
if expected is None:
return expected == actual, Stack()
# Ensure they are of same type
if type(expected) != type(actual):
return False, \
Stack().append(
StackItem('Type Mismatch: Expected Type: {0}, Actual Type: {1}'
.format(type(expected), type(actual)),
expected,
actual))
# Compare primitive types immediately
> if type(expected) in (int, str, bool, long, float, unicode):
E NameError: name 'long' is not defined
long is int in Python 3.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels