Fix tests for follow/unfollow - toot - Unnamed repository; edit this file 'description' to name the repository.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 12047cdc92b4d12f3d51b13395f749516caf9640
 (DIR) parent 9b48432d04d7ea7904ede5e18b8790ec9765eb56
 (HTM) Author: Ivan Habunek <ivan@habunek.com>
       Date:   Thu, 20 Apr 2017 10:58:49 +0200
       
       Fix tests for follow/unfollow
       
       Diffstat:
         tests/test_console.py               |      16 +++++++---------
       
       1 file changed, 7 insertions(+), 9 deletions(-)
       ---
 (DIR) diff --git a/tests/test_console.py b/tests/test_console.py
       @@ -3,7 +3,7 @@ import pytest
        import requests
        import re
        
       -from toot import console, User, App
       +from toot import console, User, App, ConsoleError
        
        from tests.utils import MockResponse
        
       @@ -218,10 +218,9 @@ def test_follow_not_found(monkeypatch, capsys):
        
            monkeypatch.setattr(requests, 'get', mock_get)
        
       -    console.run_command(app, user, 'follow', ['blixa'])
       -
       -    out, err = capsys.readouterr()
       -    assert "Account not found" in err
       +    with pytest.raises(ConsoleError) as ex:
       +        console.run_command(app, user, 'follow', ['blixa'])
       +    assert "Account not found" == str(ex.value)
        
        
        def test_unfollow(monkeypatch, capsys):
       @@ -265,10 +264,9 @@ def test_unfollow_not_found(monkeypatch, capsys):
        
            monkeypatch.setattr(requests, 'get', mock_get)
        
       -    console.run_command(app, user, 'unfollow', ['blixa'])
       -
       -    out, err = capsys.readouterr()
       -    assert "Account not found" in err
       +    with pytest.raises(ConsoleError) as ex:
       +        console.run_command(app, user, 'unfollow', ['blixa'])
       +    assert "Account not found" == str(ex.value)
        
        
        def test_whoami(monkeypatch, capsys):