Example #1
0
    def test_nonce_uniqueness(self):
        init = OAuth.get_nonce()
        l = []
        for i in range(0, 100000):
            l.append(init + OAuth.get_nonce())

        self.assertEqual(self.list_duplicates(l), [])
Example #2
0
 def test_get_nonce(self):
     nonce = OAuth.get_nonce()
     self.assertEqual(len(nonce), 16)
Example #3
0
 def test_nonce_length(self):
     nonce = OAuth.get_nonce()
     self.assertEqual(16, len(nonce))