Exemplo n.º 1
0
 def test_ntl_first(self):
     self.assertEqual(etao.num_to_letter(1), 'A')
Exemplo n.º 2
0
 def test_ntl_invalid_index_after(self):
     with self.assertRaises(ValueError):
         etao.num_to_letter(27)
Exemplo n.º 3
0
 def test_ntl_invalid_type(self):
     with self.assertRaises(TypeError):
         etao.num_to_letter('A')
Exemplo n.º 4
0
 def test_ntl_last(self):
     self.assertEqual(etao.num_to_letter(26), 'Z')
Exemplo n.º 5
0
 def test_ntl_first(self):
     self.assertEqual(etao.num_to_letter(1), 'A')
Exemplo n.º 6
0
 def test_ntl_invalid_type(self):
     with self.assertRaises(TypeError):
         etao.num_to_letter('A')
Exemplo n.º 7
0
 def test_ntl_invalid_index_after(self):
     with self.assertRaises(ValueError):
         etao.num_to_letter(27)
Exemplo n.º 8
0
 def test_ntl_last(self):
     self.assertEqual(etao.num_to_letter(26), 'Z')