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