
from click.testing import CliRunner
import os
from peeringdb import cli


test_dir = os.path.relpath(os.path.dirname(__file__))


def test_get_deps():
    assert ['django_peeringdb'] == cli.get_deps('sqlite3')


def test_config():
    runner = CliRunner()
    result = runner.invoke(cli.cli, ['conf_dump'], catch_exceptions=False)
#    print result.output
#    print result.exception
#    print result.exc_info
#    assert 0

@@ -153,62 +153,164 @@
     
+h
 as
-sert %5B'django_peeringdb'%5D == cli.get_deps('sqlite3')
+_django = 0%0A    for dep in cli.get_deps('sqlite3'):%0A        if dep.startswith('django_peeringdb'):%0A            has_django += 1%0A    assert 1 == has_django
 %0A%0A%0Ad

update dep tests for pinned versions