def test_count(self): """ Test count method """ dlist = DiskList() dlist.append('0') dlist.append('1') dlist.append('3') dlist.append('3') self.assertTrue( dlist.count('1') == 1 and dlist.count('3') == 2 and dlist.count('1337') == 0)