예제 #1
0
 def test_errors(self):
     with self.assertRaises(ValueError):
         address_to_index('100')
     with self.assertRaises(ValueError):
         address_to_index('A')
     with self.assertRaises(ValueError):
         address_to_index('A1A')
예제 #2
0
 def test_errors(self):
     with self.assertRaises(ValueError):
         address_to_index("100")
     with self.assertRaises(ValueError):
         address_to_index("A")
     with self.assertRaises(ValueError):
         address_to_index("A1A")
예제 #3
0
 def test_errors(self):
     with self.assertRaises(ValueError):
         address_to_index('100')
     with self.assertRaises(ValueError):
         address_to_index('A')
     with self.assertRaises(ValueError):
         address_to_index('A1A')
예제 #4
0
 def test_CCC100(self):
     self.assertEqual(address_to_index("CCC100"), (99, 2108))
예제 #5
0
 def test_AA100(self):
     self.assertEqual(address_to_index("AA100"), (99, 26))
예제 #6
0
 def test_C2(self):
     self.assertEqual(address_to_index("C2"), (1, 2))
예제 #7
0
 def test_A2(self):
     self.assertEqual(address_to_index("A2"), (1, 0))
예제 #8
0
 def test_lowercase_a1(self):
     self.assertEqual(address_to_index("a1"), (0, 0))
예제 #9
0
 def test_A1(self):
     self.assertEqual(address_to_index("A1"), (0, 0))
예제 #10
0
 def test_CCC100(self):
     self.assertEqual(address_to_index('CCC100'), (99, 2108))
예제 #11
0
 def test_AA100(self):
     self.assertEqual(address_to_index('AA100'), (99, 26))
예제 #12
0
 def test_C2(self):
     self.assertEqual(address_to_index('C2'), (1, 2))
예제 #13
0
 def test_A2(self):
     self.assertEqual(address_to_index('A2'), (1, 0))
예제 #14
0
 def test_lowercase_a1(self):
     self.assertEqual(address_to_index('a1'), (0, 0))
예제 #15
0
 def test_A1(self):
     self.assertEqual(address_to_index('A1'), (0, 0))