- assert isinstance(msg, notdb.NotmuchObject)
- assert isinstance(msg, notdb.Message)
+ assert isinstance(msg, notmuch2.NotmuchObject)
+ assert isinstance(msg, notmuch2.Message)
def test_messageid_type(self, msg):
assert isinstance(msg.messageid, str)
def test_messageid_type(self, msg):
assert isinstance(msg.messageid, str)
assert isinstance(bytes(msg.messageid), bytes)
def test_messageid(self, msg, maildir_msg):
assert isinstance(bytes(msg.messageid), bytes)
def test_messageid(self, msg, maildir_msg):
def test_threadid_type(self, msg):
assert isinstance(msg.threadid, str)
def test_threadid_type(self, msg):
assert isinstance(msg.threadid, str)
assert isinstance(bytes(msg.threadid), bytes)
def test_path_type(self, msg):
assert isinstance(bytes(msg.threadid), bytes)
def test_path_type(self, msg):
def test_date(self, msg):
# XXX Someone seems to treat things as local time instead of
# UTC or the other way around.
def test_date(self, msg):
# XXX Someone seems to treat things as local time instead of
# UTC or the other way around.
@pytest.fixture
def props(self, maildir):
msgid, path = maildir.deliver()
@pytest.fixture
def props(self, maildir):
msgid, path = maildir.deliver()