import chatexchange

import live_testing


if live_testing.enabled:
    def test_user_info():
        client = chatexchange.Client('stackexchange.com')

        user = client.get_user(-2)
        assert user.id == -2
        assert not user.is_moderator
        assert user.name == "StackExchange"
        assert user.room_count >= 18
        assert user.message_count >= 129810
        assert user.reputation == -1

        user = client.get_user(31768)
        assert user.id == 31768
        assert user.is_moderator
        assert user.name == "ManishEarth"
        assert user.room_count >= 222
        assert user.message_count >= 89093
        assert user.reputation > 115000

import chatexchange

import live_testing


if live_testing.enabled:
    def test_user_info():
        client = chatexchange.Client('stackexchange.com')

        user = client.get_user(-2)
        assert user.id == -2
        assert not user.is_moderator
        assert user.name == "Stack Exchange"
        assert user.room_count >= 18
        assert user.message_count >= 129810
        assert user.reputation == -1

        user = client.get_user(31768)
        assert user.id == 31768
        assert user.is_moderator
        assert user.name == "ManishEarth"
        assert user.room_count >= 222
        assert user.message_count >= 89093
        assert user.reputation > 115000

Update name of user -2
Update name of user -2

Changed from StackExchange to Stack Exchange
