emmental/scanner/test_task.py

12 lines
339 B
Python
Raw Normal View History

# Copyright 2021 (c) Anna Schumaker.
import unittest
from gi.repository import GObject
from . import task
class TestScannerTask(unittest.TestCase):
def test_scanner_task_init(self):
t = task.Task()
self.assertIsInstance(t, GObject.GObject)
with self.assertRaises(NotImplementedError):
t.run_task()