'Test that temporary_basic_auth resets old auth.'

def test_can_use_temporary_basic_auth(self):

    s = self.build_session()
    s.basic_auth('foo', 'bar')
    with s.temporary_basic_auth('temp', 'pass'):
        assert (s.auth != ('foo', 'bar'))
    assert (s.auth == ('foo', 'bar'))
