@FileSystem.in_directory(current_directory, 'django', 'grocery')
def test_django_admin_media_serving_on_django_125():
 os.environ['PYTHONPATH'] = ('%s:%s' % (FileSystem.join(lib_directory, 'Django-1.2.5'), OLD_PYTHONPATH))
 (status, out) = commands.getstatusoutput('python manage.py harvest --verbosity=2 ./features/')
 assert_equals(status, 0, out)
 lines = out.splitlines()
 f = '\n\n'
 f += ('*' * 100)
 f += ('\n' + '\n'.join(lines))
 assert (u"Preparing to serve django's admin site static files..." in lines), f
 assert (u"Django's builtin server is running at 0.0.0.0:7000" in lines), f
 assert (u'Running on port 7000 ... OK' in lines), f
 assert (u'Fetching admin media ... OK' in lines), f
 assert (u'Fetching static files ... OK' in lines), f
 assert (u'Fetching CSS files: ... OK' in lines), f
 assert (u'Fetching javascript files: ... OK' in lines), f

@ FileSystem . in_directory ( current_directory , 'django' , 'grocery' ) def test_django_admin_media_serving_on_django_125 ( ) : os . environ [ 'PYTHONPATH' ] = ( '%s:%s' % ( FileSystem . join ( lib_directory , 'Django-1.2.5' ) , OLD_PYTHONPATH ) ) ( status , out ) = commands . getstatusoutput ( 'python manage.py harvest --verbosity=2 ./features/' ) assert_equals ( status , 0 , out ) lines = out . splitlines ( ) f = '\n\n' f += ( '*' * 100 ) f += ( '\n' + '\n' . join ( lines ) ) assert ( u"Preparing to serve django's admin site static files..." in lines ) , f assert ( u"Django's builtin server is running at 0.0.0.0:7000" in lines ) , f assert ( u'Running on port 7000 ... OK' in lines ) , f assert ( u'Fetching admin media ... OK' in lines ) , f assert ( u'Fetching static files ... OK' in lines ) , f assert ( u'Fetching CSS files: ... OK' in lines ) , f assert ( u'Fetching javascript files: ... OK' in lines ) , f
lettuce should serve admin static files properly on django 1 .