'tests the examples spacing'

def test_space_examples(self):

    up_down_text = '    CTRL+Y    (^)    CTRL+N    (v)'
    loe1 = [[]]
    row1 = 0
    section1 = 1
    self.assertEqual(space_examples(loe1, row1, section1), up_down_text)
    loe1 = [['start', 'end']]
    row1 = 0
    section1 = 1
    self.assertEqual(space_examples(loe1, row1, section1), ('[1]    startend' + up_down_text))
    loe1 = [['start', 'end\n']]
    row1 = 1
    section1 = 1
    self.assertEqual(space_examples(loe1, row1, section1), ('[1]    startend\n' + up_down_text))
    loe1 = [['start', 'end\n'], ['second', '    friend\n']]
    row1 = 4
    section1 = 1
    self.assertEqual(space_examples(loe1, row1, section1), (('[1]    startend\n\n' + '1/2') + up_down_text))
    loe1 = [['start', 'end\n'], ['second', '    friend\n']]
    row1 = 4
    section1 = 2
    self.assertEqual(space_examples(loe1, row1, section1), (('[2]    second    friend\n\n' + '\n2/2') + up_down_text))
