コード例 #1
0
ファイル: octal_test.py プロジェクト: treyhunner/xpython
 def test_octal_1234567_is_decimal_342391(self):
     self.assertEqual(342391, parse_octal("1234567"))
コード例 #2
0
ファイル: octal_test.py プロジェクト: treyhunner/xpython
 def test_valid_octal_formatted_string_011_is_decimal_9(self):
     self.assertEqual(9, parse_octal("011"))
コード例 #3
0
ファイル: octal_test.py プロジェクト: treyhunner/xpython
 def test_octal_130_is_decimal_88(self):
     self.assertEqual(88, parse_octal("130"))
コード例 #4
0
ファイル: octal_test.py プロジェクト: treyhunner/xpython
 def test_octal_2047_is_decimal_1063(self):
     self.assertEqual(1063, parse_octal("2047"))
コード例 #5
0
ファイル: octal_test.py プロジェクト: treyhunner/xpython
 def test_octal_10_is_decimal_8(self):
     self.assertEqual(8, parse_octal("10"))
コード例 #6
0
ファイル: octal_test.py プロジェクト: treyhunner/xpython
 def test_octal_17_is_decimal_15(self):
     self.assertEqual(15, parse_octal("17"))
コード例 #7
0
ファイル: octal_test.py プロジェクト: treyhunner/xpython
 def test_octal_1_is_decimal_1(self):
     self.assertEqual(1, parse_octal("1"))
コード例 #8
0
ファイル: octal_test.py プロジェクト: rvsp/python-1
 def test_6789_is_seen_as_invalid(self):
     with self.assertRaisesWithMessage(ValueError):
         parse_octal("6789")
コード例 #9
0
ファイル: octal_test.py プロジェクト: rvsp/python-1
 def test_invalid_octal_is_recognized(self):
     with self.assertRaisesWithMessage(ValueError):
         parse_octal("carrot")
コード例 #10
0
ファイル: octal_test.py プロジェクト: fortrieb/python
 def test_6789_is_seen_as_invalid(self):
     with self.assertRaisesWithMessage(ValueError):
         parse_octal("6789")
コード例 #11
0
ファイル: octal_test.py プロジェクト: fortrieb/python
 def test_invalid_octal_is_recognized(self):
     with self.assertRaisesWithMessage(ValueError):
         parse_octal("carrot")