def test_get_status(self): # incomplete list arguments links = [{'status': 'not started'}, {'status': 'not started'}] dw = Download('foo', links, 'bar') self.assertEqual(dw.get_status(), 'not started') links = [{'status': 'loading'}, {'status': 'not started'}] dw = Download('foo', links, 'bar') self.assertEqual(dw.get_status(), 'loading') links = [{'status': 'success'}, {'status': 'not started'}] dw = Download('foo', links, 'bar') self.assertEqual(dw.get_status(), 'loading') links = [{'status': 'loading'}, {'status': 'loading'}] dw = Download('foo', links, 'bar') self.assertEqual(dw.get_status(), 'loading') links = [{'status': 'success'}, {'status': 'loading'}] dw = Download('foo', links, 'bar') self.assertEqual(dw.get_status(), 'loading') links = [{'status': 'success'}, {'status': 'success'}] dw = Download('foo', links, 'bar') self.assertEqual(dw.get_status(), 'success')