def check_random_add_function_output_is_as_specified(self): self.assertEqual(len(random_salt_function(salt_len=125)), 125)
def check_random_add_function_output_is_as_specified(self): self.assertEqual(len(random_salt_function(salt_len=125)), 125)
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())
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())