def testSimpleStaticCopy(self): establish_static_assets(self.pbricks) out_dir = self.pbricks.components['json_settings']['served_static_dir'] ftests = [ ('css/style.css', 'body{background-color: teal;}\n'), ('js/what.js', 'function(){};\n') ] for fname, contents in ftests: match = file_contents_match(join(out_dir, fname), contents) self.assertTrue(match)
def testAssetCopy(self): from os.path import exists out_dir = self.settings['static_buildout_dir'] establish_static_assets(self.bricks) self.assertTrue(exists(join(out_dir, 'test_components', 'static', 'style.scss'))) self.assertTrue(exists(join(out_dir, 'static', 'scss_common', 'var.scss')))