mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add tests for the eq and hash methods to the TestDefault
This commit is contained in:
parent
b7c9056fdd
commit
9d47eaef41
1 changed files with 9 additions and 0 deletions
|
|
@ -24,6 +24,15 @@ class TestDefault:
|
||||||
default = Default("test")
|
default = Default("test")
|
||||||
assert repr(default) == "<Default('test')>"
|
assert repr(default) == "<Default('test')>"
|
||||||
|
|
||||||
|
def test_eq_same_name(self):
|
||||||
|
assert Default("test") == Default("test")
|
||||||
|
|
||||||
|
def test_eq_different_name(self):
|
||||||
|
assert Default("foo") != Default("bar")
|
||||||
|
|
||||||
|
def test_hash(self):
|
||||||
|
assert hash(Default("test")) == hash(Default("test"))
|
||||||
|
|
||||||
|
|
||||||
class TestDefaultBotProperties:
|
class TestDefaultBotProperties:
|
||||||
def test_post_init_empty(self):
|
def test_post_init_empty(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue