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