Exemplo n.º 1
0
 def test_deep_nested(self):
     l = [[[[[[[[1, 2, 3]]]]]]]]
     self.assertEqual(pytest.deep_count(l), 10)
Exemplo n.º 2
0
 def test_nested_with_empty(self):
     l = [1, [] ,3]
     self.assertEqual(pytest.deep_count(l), 3)
Exemplo n.º 3
0
 def test_nested(self):
     l = [1, [1, 2, [3, 4]]]
     self.assertEqual(pytest.deep_count(l), 7)
Exemplo n.º 4
0
 def test_single_list(self):
     l = [1, 2, 3]
     self.assertEqual(pytest.deep_count(l), 3)