def test_std_val_other_prefixed_string(self):
     with self.assertRaises(ValueError):
         _std_val('B15', 'A')
 def test_std_val_negative_int(self):
     with self.assertRaises(ValueError):
         _std_val(-14, 'A')
 def test_std_val_other_string(self):
     with self.assertRaises(ValueError):
         _std_val('Foo', 'A')
 def test_std_val_int_string(self):
     self.assertEqual(_std_val('12', 'A'), 'A12')
 def test_std_val_prefixed_string(self):
     self.assertEqual(_std_val('A13', 'A'), 'A13')
 def test_std_val_empty_string(self):
     with self.assertRaises(ValueError):
         _std_val('', 'A')
 def test_std_val_int(self):
     self.assertEqual(_std_val(11, 'A'), 'A11')
示例#8
0
 def test_std_val_other_prefixed_string(self):
     with self.assertRaises(ValueError):
         _std_val('B15', 'A')
 def test_std_val_none(self):
     with self.assertRaises(ValueError):
         _std_val(None, 'A')
示例#10
0
 def test_std_val_negative_int(self):
     with self.assertRaises(ValueError):
         _std_val(-14, 'A')
示例#11
0
 def test_std_val_other_string(self):
     with self.assertRaises(ValueError):
         _std_val('Foo', 'A')
示例#12
0
 def test_std_val_prefixed_string(self):
     self.assertEqual(_std_val('A13', 'A'), 'A13')
示例#13
0
 def test_std_val_int_string(self):
     self.assertEqual(_std_val('12', 'A'), 'A12')
示例#14
0
 def test_std_val_int(self):
     self.assertEqual(_std_val(11, 'A'), 'A11')
示例#15
0
 def test_std_val_empty_string(self):
     with self.assertRaises(ValueError):
         _std_val('', 'A')
示例#16
0
 def test_std_val_none(self):
     with self.assertRaises(ValueError):
         _std_val(None, 'A')