610
610
self.addCleanup(shutil.rmtree, app_path)
612
612
self.assertTrue(os.path.exists(app_path))
613
614
with open(os.path.join(app_path, 'apps.py'), 'r') as f:
615
616
self.assertIn("class SettingsTestConfig(AppConfig)", content)
616
617
self.assertIn("name = 'settings_test'", content)
618
621
with open(os.path.join(app_path, 'models.py'), 'r') as fp:
625
625
def test_setup_environ_custom_template(self):
626
626
"directory: startapp creates the correct directory with a custom template"