'Tests whether build opener works with valid parameters'

def test__build_opener_valid(self):

    self.root._auth_style = 'basic_auth'
    mock_invoke = self.mock_object(urllib.request, 'build_opener')
    self.root._build_opener()
    self.assertTrue(mock_invoke.called)
