def test_wrong_message_type(self): H = normal_h1() message = write(H) with pytest.raises(AttributeError): collection2 = read_many(message)
def test_h2(self): H = normal_h2() message = write(H) H_ = read(message) assert H_ == H