def test_two_files(self): in_files = [ os.path.join('tests', 'resources', 'css', 'one-line.css'), os.path.join('tests', 'resources', 'css', 'two-line.css') ] expected = '''body {background-color : red;} h1 {width : 100px;} h2 {height : 50px;} ''' compression.combine(in_files, self.out_file) text = open(self.out_file).read() self.assertEquals(text, expected)
def test_one_file(self): in_files = [os.path.join('tests', 'resources', 'css', 'one-line.css')] compression.combine(in_files, self.out_file) text = open(self.out_file).read() self.assertEquals(text, 'body {background-color : red;}\n')