def test_should_file_be_built(self):
    'Test should_file_be_built returns the correct boolean value for\n        filepath that should be built.\n        '
    service_js_filepath = os.path.join('local_compiled_js', 'core', 'pages', 'AudioService.js')
    generated_parser_js_filepath = os.path.join('core', 'expressions', 'ExpressionParserService.js')
    compiled_generated_parser_js_filepath = os.path.join('local_compiled_js', 'core', 'expressions', 'ExpressionParserService.js')
    service_ts_filepath = os.path.join('core', 'pages', 'AudioService.ts')
    spec_js_filepath = os.path.join('core', 'pages', 'AudioServiceSpec.js')
    protractor_filepath = os.path.join('extensions', 'protractor.js')
    python_controller_filepath = os.path.join('base.py')
    pyc_test_filepath = os.path.join('core', 'controllers', 'base.pyc')
    python_test_filepath = os.path.join('core', 'tests', 'base_test.py')
    self.assertFalse(build.should_file_be_built(spec_js_filepath))
    self.assertFalse(build.should_file_be_built(protractor_filepath))
    self.assertTrue(build.should_file_be_built(service_js_filepath))
    self.assertFalse(build.should_file_be_built(service_ts_filepath))
    self.assertFalse(build.should_file_be_built(python_test_filepath))
    self.assertFalse(build.should_file_be_built(pyc_test_filepath))
    self.assertTrue(build.should_file_be_built(python_controller_filepath))
    with self.swap(build, 'JS_FILENAME_SUFFIXES_TO_IGNORE', ('Service.js',)):
        self.assertFalse(build.should_file_be_built(service_js_filepath))
        self.assertTrue(build.should_file_be_built(spec_js_filepath))
    with self.swap(build, 'JS_FILEPATHS_NOT_TO_BUILD', ('core/expressions/ExpressionParserService.js',)):
        self.assertFalse(build.should_file_be_built(generated_parser_js_filepath))
        self.assertTrue(build.should_file_be_built(compiled_generated_parser_js_filepath))
Test should_file_be_built returns the correct boolean value for
filepath that should be built.
def test_should_file_be_built(self):
    'Test should_file_be_built returns the correct boolean value for\n        filepath that should be built.\n        '
    service_js_filepath = os.path.join('local_compiled_js', 'core', 'pages', 'AudioService.js')
    generated_parser_js_filepath = os.path.join('core', 'expressions', 'ExpressionParserService.js')
    compiled_generated_parser_js_filepath = os.path.join('local_compiled_js', 'core', 'expressions', 'ExpressionParserService.js')
    service_ts_filepath = os.path.join('core', 'pages', 'AudioService.ts')
    spec_js_filepath = os.path.join('core', 'pages', 'AudioServiceSpec.js')
    protractor_filepath = os.path.join('extensions', 'protractor.js')
    python_controller_filepath = os.path.join('base.py')
    pyc_test_filepath = os.path.join('core', 'controllers', 'base.pyc')
    python_test_filepath = os.path.join('core', 'tests', 'base_test.py')
    self.assertFalse(build.should_file_be_built(spec_js_filepath))
    self.assertFalse(build.should_file_be_built(protractor_filepath))
    self.assertTrue(build.should_file_be_built(service_js_filepath))
    self.assertFalse(build.should_file_be_built(service_ts_filepath))
    self.assertFalse(build.should_file_be_built(python_test_filepath))
    self.assertFalse(build.should_file_be_built(pyc_test_filepath))
    self.assertTrue(build.should_file_be_built(python_controller_filepath))
    with self.swap(build, 'JS_FILENAME_SUFFIXES_TO_IGNORE', ('Service.js',)):
        self.assertFalse(build.should_file_be_built(service_js_filepath))
        self.assertTrue(build.should_file_be_built(spec_js_filepath))
    with self.swap(build, 'JS_FILEPATHS_NOT_TO_BUILD', ('core/expressions/ExpressionParserService.js',)):
        self.assertFalse(build.should_file_be_built(generated_parser_js_filepath))
        self.assertTrue(build.should_file_be_built(compiled_generated_parser_js_filepath))