Clean up test_line.
Clean up test_line.

Extract method to smaller one. Improve readbility of code.
Remove unused variables. Udpdate file to PEP 8 standard.

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy