Exemplo n.º 1
0
 def check_random_add_function_output_is_as_specified(self):
     self.assertEqual(len(random_salt_function(salt_len=125)), 125)
Exemplo n.º 2
0
 def check_random_add_function_output_is_as_specified(self):
     self.assertEqual(len(random_salt_function(salt_len=125)), 125)
Exemplo n.º 3
0
 def check_if_two_generated_salts_are_different(self):
     """
     Instead of checking if output is truly random, we'll just check if
     in two conseutive calls different functions will be returned
     """
     self.assertNotEqual(random_salt_function(), random_salt_function())
Exemplo n.º 4
0
 def check_if_two_generated_salts_are_different(self):
     """
     Instead of checking if output is truly random, we'll just check if
     in two conseutive calls different functions will be returned
     """
     self.assertNotEqual(random_salt_function(), random_salt_function())