コード例 #1
0
 def test_validate_should_accept_multiple_digit_numbers(self):
     validate_service_indicators_order("1.11,22.2,33.44")
コード例 #2
0
 def test_validate_should_accept_multiple_values_ending_comma(self):
     validate_service_indicators_order("1.1,2.3,")
コード例 #3
0
 def test_validate_should_not_accept_space_after_ending_comma(self):
     with self.assertRaises(Invalid):
         validate_service_indicators_order("1.1,2.3, ")
コード例 #4
0
 def test_validate_should_accept_one_value_ending_comma(self):
     validate_service_indicators_order("1.11,")
コード例 #5
0
 def test_validate_should_accept_multiple_values(self):
     validate_service_indicators_order("1.1,2.3")
コード例 #6
0
 def test_validate_should_accept_1_space_after_commas(self):
     validate_service_indicators_order("1.1,2.3, 3.1")
コード例 #7
0
 def test_validate_should_accept_one_value_ending_comma(self):
     validate_service_indicators_order("1.11,")
コード例 #8
0
 def test_validate_should_raise_if_no_commas(self):
     with self.assertRaises(Invalid):
         validate_service_indicators_order("1.1 2.3")
コード例 #9
0
 def test_validate_should_accept_1_space_after_commas(self):
     validate_service_indicators_order("1.1,2.3, 3.1")
コード例 #10
0
 def test_validate_should_accept_multiple_digit_numbers(self):
     validate_service_indicators_order("1.11,22.2,33.44")
コード例 #11
0
 def test_validate_should_raise_if_no_dots(self):
     with self.assertRaises(Invalid):
         validate_service_indicators_order("1,2,3")
コード例 #12
0
 def test_validate_should_not_accept_space_after_ending_comma(self):
     with self.assertRaises(Invalid):
         validate_service_indicators_order("1.1,2.3, ")
コード例 #13
0
 def test_validate_should_accept_multiple_values_ending_comma(self):
     validate_service_indicators_order("1.1,2.3,")
コード例 #14
0
 def test_validate_should_accept_multiple_values(self):
     validate_service_indicators_order("1.1,2.3")
コード例 #15
0
 def test_validate_should_raise_if_no_dots(self):
     with self.assertRaises(Invalid):
         validate_service_indicators_order("1,2,3")
コード例 #16
0
 def test_validate_should_raise_if_gt1_space_after_commas(self):
     with self.assertRaises(Invalid):
         validate_service_indicators_order("1.1,2.3,  3.1")
コード例 #17
0
 def test_validate_should_raise_if_no_commas(self):
     with self.assertRaises(Invalid):
         validate_service_indicators_order("1.1 2.3")
コード例 #18
0
 def test_validate_should_accept_one_value(self):
     validate_service_indicators_order("1.11")
コード例 #19
0
 def test_validate_should_raise_if_gt1_space_after_commas(self):
     with self.assertRaises(Invalid):
         validate_service_indicators_order("1.1,2.3,  3.1")
コード例 #20
0
 def test_validate_should_accept_one_value(self):
     validate_service_indicators_order("1.11")