def test_view(self):
        add_route(self.BASE_DIR, '/', 'HomeController', 'home.html', [])
        self.assertTrue(
            os.path.exists(os.path.join(self.BASE_DIR, 'assets', 'app', 'config', 'routes.js')))
        with open(os.path.join(self.BASE_DIR, 'assets', 'app', 'config', 'routes.js'), 'r') as js:
            routes = js.read()
            print routes
            self.assertTrue('app.config(function ($routeProvider) {' in routes)
            self.assertTrue("controller: 'HomeController'," in routes)
            self.assertTrue("templateUrl: '/static/app/views/home.html'" in routes)
dataset/ETHPy150Open mc706/django-angular-scaffold/angular_scaffold/tests/addroute_test.py/AddRouteTest.test_view/original