'Test that code with a blank line doesn\'t get split (gh-3246).'

def test_paste_magics_blankline(self):

    ip = get_ipython()
    s = 'def    pasted_func(a):\n                b    =    a+1\n\n                return    b'
    tm = ip.magics_manager.registry['TerminalMagics']
    tm.store_or_execute(s, name=None)
    self.assertEqual(ip.user_ns['pasted_func'](54), 55)
