예제 #1
0
 def check_random_add_function_output_is_as_specified(self):
     self.assertEqual(len(random_salt_function(salt_len=125)), 125)
예제 #2
0
 def check_random_add_function_output_is_as_specified(self):
     self.assertEqual(len(random_salt_function(salt_len=125)), 125)
예제 #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())
예제 #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())