    def test_name(self):
        '''Tests getting a user's name.'''
        test_user = user.User({'profile': {'first_name': 'Bot'}}, None, None)
        assert test_user.get_name() == 'Bot'
        test_user = user.User({'profile': {}, 'name': 'Bot2'}, None, None)
        assert test_user.get_name() == 'Bot2'
Tests getting a user's name.
tests/user_test.py