def run_test_slope():
    ' Tests the   slope   method of the Line class. '
    m1t.run_test_slope()
    p1 = Point(30, 3)
    p2 = Point(50, 8)
    line1 = Line(p1, p2)
    print(line1.slope())
    line2 = Line(Point(10, 10), Point(10, 5))
    print(line2.slope())
    print((line2.slope() == 'inf'))
    print('The above should print:')
    print('  0.25 (approximately)')
    print('  inf')
    print('  False')
Tests the   slope   method of the Line class.
def run_test_slope():
    '  '
    m1t.run_test_slope()
    p1 = Point(30, 3)
    p2 = Point(50, 8)
    line1 = Line(p1, p2)
    print(line1.slope())
    line2 = Line(Point(10, 10), Point(10, 5))
    print(line2.slope())
    print((line2.slope() == 'inf'))
    print('The above should print:')
    print('  0.25 (approximately)')
    print('  inf')
    print('  False')