Exemple #1
0
 def test_equal_2(self):
     self.assertEqual(flatten_me([[1, 2], [3, 4]]), [1, 2, 3, 4])
Exemple #2
0
 def test_equal_7(self):
     self.assertEqual(
         flatten_me([[True, False], '!', '?', 99, [71, '@', True]]),
         [True, False, '!', '?', 99, 71, '@', True])
Exemple #3
0
 def test_equal_1(self):
     self.assertEqual(flatten_me([1, [2, 3], 4]), [1, 2, 3, 4])
Exemple #4
0
 def test_equal_5(self):
     self.assertEqual(flatten_me(['c', ['b', 'a', 'x']]),
                      ['c', 'b', 'a', 'x'])
Exemple #5
0
 def test_equal_6(self):
     self.assertEqual(flatten_me([['a', 'b'], 'c', ['d']]),
                      ['a', 'b', 'c', 'd'])
Exemple #6
0
 def test_equal_3(self):
     self.assertEqual(flatten_me([1, [2], [3], [4]]), [1, 2, 3, 4])
Exemple #7
0
 def test_equal_4(self):
     self.assertEqual(flatten_me(['a', ['b', 'd']]), ['a', 'b', 'd'])
 def test_equal_1(self):
     self.assertEqual(flatten_me([1, [2, 3], 4]), [1, 2, 3, 4])
 def test_equal_2(self):
     self.assertEqual(flatten_me([[1, 2], [3, 4]]), [1, 2, 3, 4])
 def test_equal_7(self):
     self.assertEqual(flatten_me(
         [[True, False], '!', '?', 99, [71, '@', True]]
     ), [True, False, '!', '?', 99, 71, '@', True])
 def test_equal_6(self):
     self.assertEqual(
         flatten_me([['a', 'b'], 'c', ['d']]), ['a', 'b', 'c', 'd']
     )
 def test_equal_5(self):
     self.assertEqual(
         flatten_me(['c', ['b', 'a', 'x']]), ['c', 'b', 'a', 'x']
     )
 def test_equal_4(self):
     self.assertEqual(flatten_me(['a', ['b', 'd']]), ['a', 'b', 'd'])
 def test_equal_3(self):
     self.assertEqual(flatten_me([1, [2], [3], [4]]), [1, 2, 3, 4])