示例#1
0
 def test_main_digest(self, mock_print):
     mintotp.main()
     mock_print.assert_called_once_with('473535')
示例#2
0
 def test_main_digits(self, mock_print):
     mintotp.main()
     mock_print.assert_called_once_with('49549419')
示例#3
0
 def test_main_two_secrets(self, mock_print):
     mintotp.main()
     self.assertEqual(
         mock_print.mock_calls,
         [mock.call('549419'), mock.call('009551')])
示例#4
0
 def test_main_step(self, mock_print):
     mintotp.main()
     mock_print.assert_called_once_with('626854')
示例#5
0
 def test_main_one_secret(self, mock_print):
     mintotp.main()
     mock_print.assert_called_once_with('549419')