MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_date

Method test_date

Lib/test/test_mailbox.py:1666–1671  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1664 self._check_sample(msg)
1665
1666 def test_date(self):
1667 # Use get_date() and set_date()
1668 msg = mailbox.MaildirMessage(_sample_message)
1669 self.assertLess(abs(msg.get_date() - time.time()), 60)
1670 msg.set_date(0.0)
1671 self.assertEqual(msg.get_date(), 0.0)
1672
1673 def test_info(self):
1674 # Use get_info() and set_info()

Callers

nothing calls this directly

Calls 6

get_dateMethod · 0.95
set_dateMethod · 0.95
absFunction · 0.50
assertLessMethod · 0.45
timeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected