Beispiel #1
0
 def test_parsing_float_zero(self):
     success, result = up.try_parse_arg(0.0)
     self.assertEqual(success, True)
Beispiel #2
0
 def test_parsing_float_big(self):
     success, result = up.try_parse_arg(up.max_value)
     self.assertEqual(success, True)
Beispiel #3
0
 def test_parsing_float_random(self):
     success, result = up.try_parse_arg(get_random_float_number(
         -10.0, 10.0))
     self.assertEqual(success, True)
Beispiel #4
0
 def test_parsing_int_small(self):
     success, result = up.try_parse_arg(int(up.min_value))
     self.assertEqual(success, True)
Beispiel #5
0
 def test_parsing_int_pos(self):
     success, result = up.try_parse_arg(get_random_int_number(1, 10))
     self.assertEqual(success, True)
Beispiel #6
0
 def test_parsing_string(self):
     success, result = up.try_parse_arg(get_random_string(10))
     self.assertEqual(success, False)
Beispiel #7
0
 def test_parsing_empty_symbol(self):
     success, result = up.try_parse_arg('')
     self.assertEqual(success, False)