Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jun 15, 2011
1 parent 7f9dab9 commit 4c646ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/tests.py
Expand Up @@ -20,6 +20,14 @@ def test_basic_functionality(self):

self.assert_('testlib' in sys.modules)

def test_naming(self):
import multiversion
import using_testlib_10 as v1
import using_testlib_20 as v2
prefix = multiversion.space.__name__ + '.'
self.assertEqual(v1.mod.__name__, prefix + 'testlib___312e30.testlib')
self.assertEqual(v2.mod.__name__, prefix + 'testlib___322e30.testlib')

def test_proxy(self):
# trigger proxy
import using_testlib_10 as v1
Expand Down
1 change: 1 addition & 0 deletions tests/versioned-libs/using_testlib_10.py
Expand Up @@ -2,3 +2,4 @@
multiversion.require_version('testlib', '1.0')

from testlib import a_function
import testlib as mod
1 change: 1 addition & 0 deletions tests/versioned-libs/using_testlib_20.py
Expand Up @@ -2,3 +2,4 @@
multiversion.require_version('testlib', '2.0')

from testlib import a_function
import testlib as mod

0 comments on commit 4c646ba

Please sign in to comment.