hiway/atum

Comparing Atum object to string raises exception

Closed this issue · 0 comments

hiway commented

Error:

>>> from atum import test
>>> test == 'test'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../atum.py", line 11, in __eq__
    return self._name == getattr(other, '_name')
AttributeError: 'str' object has no attribute '_name'

Expected:

>>> from atum import test
>>> test == 'test'
True