12 lines
339 B
Python
12 lines
339 B
Python
|
# 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()
|