21 lines
577 B
Python
21 lines
577 B
Python
# Copyright 2024 (c) Anna Schumaker.
|
|
"""Tests our ListenBrainz client thread."""
|
|
import emmental.listenbrainz.thread
|
|
import unittest
|
|
|
|
|
|
class TestThread(unittest.TestCase):
|
|
"""ListenBrainz Thread test case."""
|
|
|
|
def setUp(self):
|
|
"""Set up common variables."""
|
|
self.thread = emmental.listenbrainz.thread.Thread()
|
|
|
|
def tearDown(self):
|
|
"""Clean up."""
|
|
self.thread.stop()
|
|
|
|
def test_init(self):
|
|
"""Test that the ListenBrainz thread was initialized properly."""
|
|
self.assertIsInstance(self.thread, emmental.thread.Thread)
|