1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
# -*- coding: utf-8 -*-
# This file is part of quark-sphinx-theme.
# Copyright (c) 2016 Felix Krull <f_krull@gmx.de>
# Released under the terms of the BSD license; see LICENSE.
import os
import unittest
import quark_sphinx_theme
class TestGetPath(unittest.TestCase):
def test_get_path(self):
p = quark_sphinx_theme.get_path()
self.assertTrue(os.path.isdir(p))
conf = os.path.join(p, 'quark', 'theme.conf')
self.assertTrue(os.path.isfile(conf))
if __name__ == '__main__':
unittest.main()
|