def test_generate_random_string_from_array_returns_value(self):
     values = []
     num_to_enter = unittestutils.generateRandomInt()
     i = 0
     while i < num_to_enter:
         values.append(unittestutils.generateRandomString())
         i += 1
     self.assertTrue(unittestutils.generateRandomStringFromArray(values) in values)
 def test_generate_random_string_from_array_returns_correct_value_in_single_item_array(self):
     values = [unittestutils.generateRandomInt()]
     self.assertTrue(unittestutils.generateRandomStringFromArray(values) in values)
 def test_generate_random_string_returns_string_of_right_length(self):
     length = unittestutils.generateRandomInt()
     self.assertEqual(length, len(unittestutils.generateRandomString(length)))
 def test_generate_random_int_does_not_return_a_value_outside_of_submitted_bounds(self):
     self.assertTrue(unittestutils.generateRandomInt(0, 1) >= 0 and unittestutils.generateRandomInt(0, 1) <= 1)
 def test_generate_random_int_by_default_returns_an_int_between_0_and_100(self):
     self.assertTrue(unittestutils.generateRandomInt() >= 0 and unittestutils.generateRandomInt() <= 100)
 def test_generate_random_int_doesnt_return_null(self):
     self.assertTrue(unittestutils.generateRandomInt() is not None)