15 lines
438 B
Python
15 lines
438 B
Python
# Copyright 2021 (c) Anna Schumaker.
|
|
import sidebar
|
|
import unittest
|
|
from gi.repository import Gtk
|
|
|
|
class TestSidebar(unittest.TestCase):
|
|
def test_init(self):
|
|
sbar = sidebar.Sidebar()
|
|
self.assertIsInstance(sbar, Gtk.Box)
|
|
|
|
child = sbar.get_first_child()
|
|
self.assertIsInstance(child, sidebar.stack.Switcher)
|
|
child = child.get_next_sibling()
|
|
self.assertIsInstance(child, sidebar.stack.Box)
|