def test_status_code_to_text(self):
     self.assertEqual(
         DataStore.status_code_to_text(DataStore.STATUS_QUEUED), 'queued')
     self.assertEqual(
         DataStore.status_code_to_text(DataStore.STATUS_CONVERTING),
         'converting')
     self.assertEqual(
         DataStore.status_code_to_text(DataStore.STATUS_FINISHED),
         'finished')
     self.assertEqual(
         DataStore.status_code_to_text(DataStore.STATUS_FAILED), 'failed')
     self.assertEqual(Test.status_code_to_text(0xffffffff), 'unknown')
 def test_status_code_to_text(self):
     self.assertEqual(
         DataStore.status_code_to_text(DataStore.STATUS_QUEUED), 'queued')
     self.assertEqual(
         DataStore.status_code_to_text(DataStore.STATUS_CONVERTING),
         'converting')
     self.assertEqual(
         DataStore.status_code_to_text(DataStore.STATUS_FINISHED),
         'finished')
     self.assertEqual(
         DataStore.status_code_to_text(DataStore.STATUS_FAILED), 'failed')
     self.assertEqual(
         Test.status_code_to_text(0xffffffff),
         'unknown')
 def _check_has_conversion_finished(self, status, expected):
     ds = DataStore(self.client)
     ds.status = status
     self.assertEqual(ds.has_conversion_finished(), expected)
     self.assertEqual(self.client.last_request_method, 'get')
 def test_has_conversion_finished(self):
     ds = DataStore(self.client)
     self.assertFalse(ds.has_conversion_finished())
     self.assertEqual(self.client.last_request_method, 'get')
 def _check_has_conversion_finished(self, status, expected):
     ds = DataStore(self.client)
     ds.status = status
     self.assertEqual(ds.has_conversion_finished(), expected)
     self.assertEqual(self.client.last_request_method, 'get')
 def test_has_conversion_finished(self):
     ds = DataStore(self.client)
     self.assertFalse(ds.has_conversion_finished())
     self.assertEqual(self.client.last_request_method, 'get')