def test_validate_generic_single_value_invalid_3(self): validated = validate_generic_single_value((a for a in range(2))) self.assertFalse(validated)
def test_validate_generic_single_value_invalid_2(self): validated = validate_generic_single_value([1, 2]) self.assertFalse(validated)
def test_validate_generic_single_value_invalid_1(self): validated = validate_generic_single_value((1, 2)) self.assertFalse(validated)
def test_validate_generic_single_value_valid_3(self): validated = validate_generic_single_value(object) self.assertTrue(validated)
def test_validate_generic_single_value_valid_2(self): validated = validate_generic_single_value('abc') self.assertTrue(validated)
def test_validate_generic_single_value_valid_1(self): validated = validate_generic_single_value(1) self.assertTrue(validated)