Did I find the right examples for you? yes no

All Samples(26)  |  Call(16)  |  Derive(0)  |  Import(10)

        def abs(*paths):
    return os.path.abspath(os.path.join(*paths))
        


src/d/j/django-tip-0.3/tip/tests/functional/test_template_listing_command.py   django-tip(Download)
from nose.tools import with_setup
 
from tip.tests.helpers import abs, LoggableDevice
from tip.management.commands import tip
 
def invoking_the_listing_command_returns_all_templates():
    command.handle('list')
    expected = abs(settings.ROOT_DIR, 'dummy_app1/templates/base_app1.html')
    assert expected in sys.stdout.outputs, '"%s" expected in "%s"' \
            % (expected, sys.stdout.outputs)
 
def i_have_an_invalid_template():
    command.handle('list')
    expected = abs(settings.ROOT_DIR, 'dummy_app1/templates/invalid_template.html')
def invoking_the_listing_command_returns_only_invalid_templates():
    command.handle('invalid')
    expected = abs(settings.ROOT_DIR, 'dummy_app1/templates/invalid_template.html')
 
    not_expected = abs(settings.ROOT_DIR, 'dummy_app1/templates/base_app1.html')

src/d/j/django-template-inspector-HEAD/tip/tests/functional/test_template_listing_command.py   django-template-inspector(Download)
from nose.tools import with_setup
 
from tip.tests.helpers import abs, LoggableDevice
from tip.management.commands import tip
 
def invoking_the_listing_command_returns_all_templates():
    command.handle('list')
    expected = abs(settings.ROOT_DIR, 'dummy_app1/templates/base_app1.html')
    assert expected in sys.stdout.outputs, '"%s" expected in "%s"' \
            % (expected, sys.stdout.outputs)
 
def i_have_an_invalid_template():
    command.handle('list')
    expected = abs(settings.ROOT_DIR, 'dummy_app1/templates/invalid_template.html')
def invoking_the_listing_command_returns_only_invalid_templates():
    command.handle('invalid')
    expected = abs(settings.ROOT_DIR, 'dummy_app1/templates/invalid_template.html')
 
    not_expected = abs(settings.ROOT_DIR, 'dummy_app1/templates/base_app1.html')

src/d/j/django-tip-0.3/tip/tests/functional/test_template_path_listing.py   django-tip(Download)
 
from django.conf import settings
from tip.tests.helpers import abs
 
from tip.actions import TemplatePathListingAction
def i_have_a_template_folder_on_my_path():
    assert abs(settings.ROOT_DIR, 'templates') in paths, 'should have a template folder on ROOT_DIR'
 
def test_i_have_installed_apps_template_folders_on_my_path():
    assert abs(settings.ROOT_DIR, 'dummy_app1/templates') in paths, 'should have the template folder for DUMMY_APP1'
    assert abs(settings.ROOT_DIR, 'dummy_app2/templates') not in paths, 'should have the template folder for DUMMY_APP1'

src/d/j/django-template-inspector-HEAD/tip/tests/functional/test_template_path_listing.py   django-template-inspector(Download)
 
from django.conf import settings
from tip.tests.helpers import abs
 
from tip.actions import TemplatePathListingAction
def i_have_a_template_folder_on_my_path():
    assert abs(settings.ROOT_DIR, 'templates') in paths, 'should have a template folder on ROOT_DIR'
 
def test_i_have_installed_apps_template_folders_on_my_path():
    assert abs(settings.ROOT_DIR, 'dummy_app1/templates') in paths, 'should have the template folder for DUMMY_APP1'
    assert abs(settings.ROOT_DIR, 'dummy_app2/templates') not in paths, 'should have the template folder for DUMMY_APP1'

src/d/j/django-tip-0.3/tip/tests/functional/test_template_path_listing_command.py   django-tip(Download)
from nose.tools import with_setup
 
from tip.tests.helpers import abs, LoggableDevice
from tip.management.commands import tip
 
def invoking_the_listing_command_returns_all_paths():
    command.handle('dirs')
    expected = abs(settings.ROOT_DIR, 'templates')
    assert expected in sys.stdout.outputs,\
            'Should return a list of paths'

src/d/j/django-template-inspector-HEAD/tip/tests/functional/test_template_path_listing_command.py   django-template-inspector(Download)
from nose.tools import with_setup
 
from tip.tests.helpers import abs, LoggableDevice
from tip.management.commands import tip
 
def invoking_the_listing_command_returns_all_paths():
    command.handle('dirs')
    expected = abs(settings.ROOT_DIR, 'templates')
    assert expected in sys.stdout.outputs,\
            'Should return a list of paths'

src/d/j/django-template-inspector-HEAD/tip/tests/functional/test_template_inclusion_command.py   django-template-inspector(Download)
from nose.tools import assert_equals, with_setup
 
from tip.tests.helpers import abs, LoggableDevice
from tip.management.commands import tip
 

src/d/j/django-template-inspector-HEAD/tip/tests/functional/test_help_command.py   django-template-inspector(Download)
from nose.tools import assert_equals, with_setup
 
from tip.tests.helpers import abs, LoggableDevice
from tip.management.commands import tip
 

src/d/j/django-tip-0.3/tip/tests/functional/test_template_inclusion_command.py   django-tip(Download)
from nose.tools import assert_equals, with_setup
 
from tip.tests.helpers import abs, LoggableDevice
from tip.management.commands import tip
 

src/d/j/django-tip-0.3/tip/tests/functional/test_help_command.py   django-tip(Download)
from nose.tools import assert_equals, with_setup
 
from tip.tests.helpers import abs, LoggableDevice
from tip.management.commands import tip