Exemplo n.º 1
0
 def test_two_models_content(self):
     result = get_output( ["appone.SampleModel","appone.AnotherModel",
                             'apptwo.SampleModelTwo'],
                         to_file=None, auto_file_name=None)
     expected = get_fixture_result('both_apps_output.py')
     self.maxDiff = None
     self.assertMultiLineEqual(result, expected)
Exemplo n.º 2
0
 def test_app_with_many(self):
     result = get_output( ["appone"],
                         to_file=None, auto_file_name=None)
     expected = get_fixture_result('one_app_output.py')
     self.assertMultiLineEqual(result, expected)
Exemplo n.º 3
0
 def handle(self, *labels, **options):
     return get_output(
         labels,
         to_file=options.get('to_file', False),
         auto_file_name=options.get('auto_file_name', None),
     )
 def handle(self, *labels, **options):
     return get_output(
         labels,
         to_file=options.get('to_file', False),
         auto_file_name=options.get('auto_file_name', None),
     )