def test_Location___repr__(): tus = Location(32.2, -111, 'US/Arizona', 700, 'Tucson') expected = '\n'.join([ 'Location: ', ' name: Tucson', ' latitude: 32.2', ' longitude: -111', ' altitude: 700', ' tz: US/Arizona' ]) assert tus.__repr__() == expected
def test_Location___repr__(): tus = Location(32.2, -111, 'US/Arizona', 700, 'Tucson') assert tus.__repr__() == ('Tucson: latitude=32.2, longitude=-111, ' + 'tz=US/Arizona, altitude=700')
def test_Location___repr__(): tus = Location(32.2, -111, 'US/Arizona', 700, 'Tucson') expected = 'Location: \n name: Tucson\n latitude: 32.2\n longitude: -111\n altitude: 700\n tz: US/Arizona' assert tus.__repr__() == expected
def test_Location___repr__(): tus = Location(32.2, -111, 'US/Arizona', 700, 'Tucson') assert tus.__repr__()==('Tucson: latitude=32.2, longitude=-111, '+ 'tz=US/Arizona, altitude=700')