예제 #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']]))
예제 #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']]))
예제 #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']]))
예제 #4
0
 def test_build_string_from_array_of_array_of_empty(self):
     self.assert_line_by_line_equal('''[[]]''', build_string_from_array([[]]))
예제 #5
0
 def test_build_string_from_array_simple(self):
     self.assert_line_by_line_equal("['a']", build_string_from_array(['a']))
예제 #6
0
 def test_build_string_from_array_empty(self):
     self.assert_line_by_line_equal('[]', build_string_from_array([]))
예제 #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']]))
예제 #8
0
 def test_build_string_from_array_of_array_of_empty(self):
     self.assert_line_by_line_equal('''[[]]''',
                                    build_string_from_array([[]]))
예제 #9
0
 def test_build_string_from_array_simple(self):
     self.assert_line_by_line_equal("['a']", build_string_from_array(['a']))
예제 #10
0
 def test_build_string_from_array_empty(self):
     self.assert_line_by_line_equal('[]', build_string_from_array([]))