Exemplo n.º 1
0
 def test_str_type(self):
   self.assertEqual(6, data_type('andela'))
Exemplo n.º 2
0
 def test_none_type(self):
   self.assertEqual('no value', data_type(None))
Exemplo n.º 3
0
 def test_large_integer_type(self):
   self.assertEqual('more than 100', data_type(200))
Exemplo n.º 4
0
 def test_small_integer_type(self):
   self.assertEqual('less than 100', data_type(3))
Exemplo n.º 5
0
 def test_small_booleans_type(self):
   self.assertEqual(True, data_type(True))
Exemplo n.º 6
0
 def test_small_array_type(self):
   self.assertEqual(None, data_type([1, 2]))
Exemplo n.º 7
0
 def test_array_type(self):
   self.assertEqual(3, data_type([1, 2, 3]))