Пример #1
0
 def test_die_and_restart(self, m_sleep, m_exit):
     die_and_restart()
     m_sleep.assert_called_once_with(2)
     m_exit.assert_called_once_with(1)
Пример #2
0
 def test_die_and_restart(self, m_sleep, m_exit):
     die_and_restart()
     m_sleep.assert_called_once_with(2)
     m_exit.assert_called_once_with(1)