Example #1
0
 def test__verify_code_wrong_code(self):
     """Test credentials._verify_code with code from another user."""
     ret = _verify_code('*****@*****.**', 'ARxJtdP43GU')
     self.assertFalse(ret.is_valid)
Example #2
0
 def test__verify_code_bad_code(self):
     """Test credentials._verify_code with invalid base58 code."""
     ret = _verify_code('*****@*****.**', '****')
     self.assertFalse(ret.is_valid)
Example #3
0
 def test__verify_code(self):
     """Test _generate_code."""
     ret = _verify_code('*****@*****.**', 'ARzVsqhSB5i')
     self.assertTrue(ret.is_valid)