Пример #1
0
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
Пример #2
0
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
Пример #3
0
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')
Пример #4
0
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
Пример #5
0
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')