baverman/supplement — Issue #15: Doesn't handle "import module as name"
Author: prabhuramachandran
Created: 2012-02-21 12:37:54+00:00
State: open

Here is an example that fails, try this code::

```python
import math as M
M.s
```
Does not complete and produces errors. I have a simple test case here in test_assist.py.

```python
def test_assist_for_import_as(project):
project.create_module('toimport', '''
test = 1
''')

result = do_assist(project, '''
import toimport as foo
foo.te''')

assert result == ['foo.test']
```