Skip to content

Commit 7ed8f53

Browse files
committed
remove test_emptyness / TestClass
1 parent efbfafa commit 7ed8f53

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def finalize_options(self):
3131
self.names = []
3232
else:
3333
self.names = ["test_discid.TestModulePrivate",
34-
"test_discid.TestModule", "test_discid.TestClass"]
34+
"test_discid.TestModule"]
3535

3636
def run(self):
3737
suite = unittest.defaultTestLoader.loadTestsFromNames(self.names)

test_discid.py

-23
Original file line numberDiff line numberDiff line change
@@ -102,29 +102,6 @@ def test_put_success(self):
102102
self.assertEqual(type(track.seconds), int)
103103

104104

105-
class TestClass(unittest.TestCase):
106-
107-
def setUp(self):
108-
self.disc = discid.Disc()
109-
self.assertTrue(self.disc, "No Disc object created")
110-
111-
def test_emptyness(self):
112-
# all should be empty and don't give exceptions
113-
self.assertTrue(self.disc.id is None)
114-
self.assertTrue(self.disc.freedb_id is None)
115-
self.assertTrue(self.disc.submission_url is None)
116-
self.assertTrue(self.disc.mcn is None)
117-
self.assertFalse(self.disc.first_track_num)
118-
self.assertFalse(self.disc.last_track_num)
119-
self.assertFalse(self.disc.sectors)
120-
self.assertFalse(self.disc.length)
121-
self.assertFalse(self.disc.seconds)
122-
self.assertFalse(self.disc.tracks)
123-
124-
def tearDown(self):
125-
self.disc._free()
126-
127-
128105
class TestDisc(unittest.TestCase):
129106
"""Test reading the disc currently in the drive
130107
"""

0 commit comments

Comments
 (0)