'Test change_custom_css'

def test_change_custom_css(self):

    sickbeard.CUSTOM_CSS_PATH = ''
    self.assertFalse(config.change_custom_css(__file__))
    self.assertFalse(config.change_custom_css('not_real.jpg'))
    self.assertFalse(config.change_custom_css('sickrage_tests'))
    css_file = os.path.join(os.path.dirname(__file__), 'custom.css')
    with open(css_file, 'w') as f:
        f.write('table.main    {\n                width:    100%;\n}')
    self.assertTrue(config.change_custom_css(css_file))
    os.remove(css_file)
    self.assertTrue(config.change_custom_css(''))
