26 lines
916 B
Python
26 lines
916 B
Python
# Copyright 2022 (c) Anna Schumaker.
|
|
"""Test as much as we can of the Emmental Application."""
|
|
import unittest
|
|
import gi
|
|
import emmental
|
|
|
|
|
|
class TestEmmental(unittest.TestCase):
|
|
"""Emmental Application test case."""
|
|
|
|
def setUp(self):
|
|
"""Set up common variables."""
|
|
self.application = emmental.Application()
|
|
|
|
def test_version(self):
|
|
"""Check that version constants have been set properly."""
|
|
self.assertEqual(emmental.MAJOR_VERSION, 3)
|
|
self.assertEqual(emmental.MINOR_VERSION, 0)
|
|
self.assertEqual(emmental.VERSION_STRING, "Emmental 3.0-debug")
|
|
|
|
def test_application(self):
|
|
"""Check that the application instance is initialized properly."""
|
|
self.assertIsInstance(self.application, gi.repository.Adw.Application)
|
|
self.assertEqual(self.application.get_application_id(),
|
|
"com.nowheycreamery.emmental-debug")
|