Ejemplo n.º 1
0
 def test_build_string_from_array_of_arrays_multiple_elements(self):
     self.assert_line_by_line_equal('''[
         [
             'a',
             'b'
         ],
         [
             'c',
             'd'
         ]
     ]''', build_string_from_array([['a', 'b'], ['c', 'd']]))
Ejemplo n.º 2
0
 def test_build_string_from_array_of_arrays_multiple_elements(self):
     self.assert_line_by_line_equal('''[
         [
             'a',
             'b'
         ],
         [
             'c',
             'd'
         ]
     ]''', build_string_from_array([['a', 'b'], ['c', 'd']]))
Ejemplo n.º 3
0
 def test_build_string_from_array_of_arrays_single_element(self):
     self.assert_line_by_line_equal('''[
         ['a'],
         ['b']
     ]''', build_string_from_array([['a'], ['b']]))
Ejemplo n.º 4
0
 def test_build_string_from_array_of_array_of_empty(self):
     self.assert_line_by_line_equal('''[[]]''', build_string_from_array([[]]))
Ejemplo n.º 5
0
 def test_build_string_from_array_simple(self):
     self.assert_line_by_line_equal("['a']", build_string_from_array(['a']))
Ejemplo n.º 6
0
 def test_build_string_from_array_empty(self):
     self.assert_line_by_line_equal('[]', build_string_from_array([]))
Ejemplo n.º 7
0
 def test_build_string_from_array_of_arrays_single_element(self):
     self.assert_line_by_line_equal(
         '''[
         ['a'],
         ['b']
     ]''', build_string_from_array([['a'], ['b']]))
Ejemplo n.º 8
0
 def test_build_string_from_array_of_array_of_empty(self):
     self.assert_line_by_line_equal('''[[]]''',
                                    build_string_from_array([[]]))
Ejemplo n.º 9
0
 def test_build_string_from_array_simple(self):
     self.assert_line_by_line_equal("['a']", build_string_from_array(['a']))
Ejemplo n.º 10
0
 def test_build_string_from_array_empty(self):
     self.assert_line_by_line_equal('[]', build_string_from_array([]))