Skip to content

Commit

Permalink
Fix __init__.py test
Browse files Browse the repository at this point in the history
  • Loading branch information
caseman committed Oct 4, 2011
1 parent bd48e4f commit 5ec1e0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gravita/test/test_init.py
Expand Up @@ -10,6 +10,8 @@ def test_main(self):
self.assertTrue(isinstance(config, TestConfigFactory))
self.assertTrue(config.wsgi_app_made)
self.assertEqual(config.settings, {'foo': 'bar'})
self.assertEqual(
config.static_view, {'name': '/static', 'path': 'www'})
self.assertEqual(config.scanned, 'gravita')


Expand All @@ -18,8 +20,12 @@ class TestConfigFactory(object):
def __init__(self, settings):
self.settings = settings
self.wsgi_app_made = False
self.static_view = None
self.scanned = None

def add_static_view(self, **kw):
self.static_view = kw

def scan(self, what):
self.scanned = what

Expand Down

0 comments on commit 5ec1e0c

Please sign in to comment.