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')
Esempio n. 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')
Esempio n. 10
0
 def test_std_val_negative_int(self):
     with self.assertRaises(ValueError):
         _std_val(-14, 'A')
Esempio n. 11
0
 def test_std_val_other_string(self):
     with self.assertRaises(ValueError):
         _std_val('Foo', 'A')
Esempio n. 12
0
 def test_std_val_prefixed_string(self):
     self.assertEqual(_std_val('A13', 'A'), 'A13')
Esempio n. 13
0
 def test_std_val_int_string(self):
     self.assertEqual(_std_val('12', 'A'), 'A12')
Esempio n. 14
0
 def test_std_val_int(self):
     self.assertEqual(_std_val(11, 'A'), 'A11')
Esempio n. 15
0
 def test_std_val_empty_string(self):
     with self.assertRaises(ValueError):
         _std_val('', 'A')
Esempio n. 16
0
 def test_std_val_none(self):
     with self.assertRaises(ValueError):
         _std_val(None, 'A')