Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)

src/d/j/django-configglue-0.7.1/django_configglue/tests/test_settings.py   django-configglue(Download)
    def test_no_args(self):
        self.call_command()
        self.assertTrue(self.output.startswith('Usage: '))
 
    def test_get(self):
        self.call_command('installed_apps')
    def test_get_not_found(self):
        self.call_command('bogus')
        expected_output = "setting BOGUS not found"
        self.assertEqual(self.output.strip(), expected_output)
 
        if django.VERSION >= (1, 6, 0):
            expected_values.append("BASE_DIR = ''")
        self.call_command(show_current=True)
        output_lines = self.output.strip().split('\n')
        self.assertEqual(set(expected_values), set(output_lines))
 
    def test_show_global(self):
        self.call_command(show_current=True, include_global=True)