def test_css_generator(self): '''TEST: Checking CSS File''' template = "@font-face {\ \n\tfont-family: '" + 'prototypo' + "';\ \n\tsrc: url('" + 'testfont' + ".eot');\ \n\tsrc: url('" + 'testfont' + ".eot?#iefix') format('embedded-opentype'),\ \n\turl('" + 'testfont' + ".woff') format('woff'),\ \n\turl('" + 'testfont' + ".ttf') format('truetype'),\ \n\turl('" + 'testfont' + ".svg#ywftsvg') format('svg');\ \n\tfont-style: normal;\ \n\tfont-weight: normal;\ \n}\n\n" self.assertEqual(Upload.css_generator('.', 'testfont', 'prototypo'), template)