def test_parsing_float_zero(self): success, result = up.try_parse_arg(0.0) self.assertEqual(success, True)
def test_parsing_float_big(self): success, result = up.try_parse_arg(up.max_value) self.assertEqual(success, True)
def test_parsing_float_random(self): success, result = up.try_parse_arg(get_random_float_number( -10.0, 10.0)) self.assertEqual(success, True)
def test_parsing_int_small(self): success, result = up.try_parse_arg(int(up.min_value)) self.assertEqual(success, True)
def test_parsing_int_pos(self): success, result = up.try_parse_arg(get_random_int_number(1, 10)) self.assertEqual(success, True)
def test_parsing_string(self): success, result = up.try_parse_arg(get_random_string(10)) self.assertEqual(success, False)
def test_parsing_empty_symbol(self): success, result = up.try_parse_arg('') self.assertEqual(success, False)