Skip to content

Commit

Permalink
Adds test
Browse files Browse the repository at this point in the history
  • Loading branch information
spacether authored and corenting committed Oct 6, 2023
1 parent b8493ba commit c85f8d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_immutabledict.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class Two(Base):
my_dict = second_dict
assert my_dict == second_dict

def test_new_init_methods(self) -> None:
assert "__new__" in immutabledict.__dict__
assert "__init__" not in immutabledict.__dict__

def test_cannot_assign_value(self) -> None:
with pytest.raises(AttributeError):
immutabledict().setitem("key", "value") # type: ignore
Expand Down

0 comments on commit c85f8d7

Please sign in to comment.