@@ -0,0 +1,912 @@
+# -*- coding: utf-8 -*-%0A%0Afrom __future__ import absolute_import%0A%0Aimport os%0Afrom sentry.testutils import CliTestCase%0Afrom sentry.runner.commands.init import init%0A%0A%0Aclass InitTest(CliTestCase):%0A    def test_simple(self):%0A        with self.runner.isolated_filesystem():%0A            rv = self.runner.invoke(init, %5B'config'%5D, obj=%7B%7D)%0A            assert rv.exit_code == 0, rv.output%0A            contents = os.listdir('config')%0A            assert set(contents) == %7B'sentry.conf.py', 'config.yml'%7D%0A%0A            # Make sure the python file is valid%0A            ctx = %7B'__file__': 'sentry.conf.py'%7D%0A            execfile('config/sentry.conf.py', ctx)%0A            assert 'DEBUG' in ctx%0A%0A            # Make sure the yaml file is valid%0A            from sentry.utils.yaml import safe_load%0A            with open('config/config.yml', 'rb') as fp:%0A                ctx = safe_load(fp)%0A            assert 'system.secret-key' in ctx%0A

Add tests for init command