Commits

holger krekel committed c666f61

define and test __all__

  • Participants
  • Parent commits f47f372

Comments (0)

Files changed (2)

 """
 __version__ = "0.2.dev0"
 
+__all__ = ['IniConfig', 'ParseError']
+
 class ParseError(Exception):
     def __init__(self, path, lineno, msg):
         Exception.__init__(self, path, lineno, msg)

test_iniconfig.py

 import py
-from iniconfig import IniConfig, ParseError
+from iniconfig import IniConfig, ParseError, __all__ as ALL
 from textwrap import dedent
 
 def pytest_generate_tests(metafunc):
     assert ['repository', 'username', 'password'] == list(other)
 
 
+def test_api_import():
+    assert ALL == ['IniConfig', 'ParseError']