Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)
def test_col2num(self):
self.assertEqual(columnletter2num('A'), 1)
self.assertEqual(columnletter2num('Z'), 26)
self.assertEqual(columnletter2num('AA'), 27)
self.assertEqual(columnletter2num('BA'), 53)
self.assertEqual(columnletter2num('YQ'), 667)
self.assertEqual(columnletter2num('ZZ'), 702)
self.assertEqual(columnletter2num('AAA'), 703)
self.assertEqual(columnletter2num('PZD'), 11496)
self.assertEqual(columnletter2num('QGK'), 11685)
self.assertEqual(columnletter2num('XFD'), 16384)