

def test_write_buffer_contents_to_file_writes_correct_contents_to_desired_file_with_valid_coffee_script(self):
    contents = ['for name in ["Toran", "Matt", "Brandon", "Joel"]', "  console.log('The name' + name)"]
    sut.write_buffer_contents_to_file(COFFEE_FILE, contents)
    with open(COFFEE_FILE, 'r') as f:
        self.assertEqual(f.readlines(), [(self + '\n') for line in contents])

dataset/ETHPy150Open JarrodCTaylor/vim-js2coffee/tests/vim_js2coffee_tests.py VimCoffee2JSTests.test_write_buffer_contents_to_file_writes_correct_contents_to_desired_file_with_valid_coffee_script/VarMisuse@51/126 `line`->`self`