Skip to content

Commit

Permalink
test "import foo as bar"
Browse files Browse the repository at this point in the history
  • Loading branch information
thenewguy committed Feb 22, 2012
1 parent d9fadbc commit 9126f44
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/import/asname/.gitignore
@@ -0,0 +1,4 @@
*.py.js
*.err
*.out
*.run
6 changes: 6 additions & 0 deletions tests/import/asname/asname.py
@@ -0,0 +1,6 @@
import samelevel as one
print one.Foo()
import foo.bar as three
print three.Bar()
import foo as two
print two.Foo()
4 changes: 4 additions & 0 deletions tests/import/asname/foo/.gitignore
@@ -0,0 +1,4 @@
*.py.js
*.err
*.out
*.run
3 changes: 3 additions & 0 deletions tests/import/asname/foo/__init__.py
@@ -0,0 +1,3 @@
import bar
def Foo():
return "Foo and " + bar.Bar()
4 changes: 4 additions & 0 deletions tests/import/asname/foo/bar/.gitignore
@@ -0,0 +1,4 @@
*.py.js
*.err
*.out
*.run
2 changes: 2 additions & 0 deletions tests/import/asname/foo/bar/__init__.py
@@ -0,0 +1,2 @@
def Bar():
return "Bar"
2 changes: 2 additions & 0 deletions tests/import/asname/samelevel.py
@@ -0,0 +1,2 @@
def Foo():
return "Foo"

0 comments on commit 9126f44

Please sign in to comment.