def test_get_artifact(self): obs = _get_artifact(1) exp = qdb.artifact.Artifact(1) self.assertEqual(obs, exp) # It does not exist with self.assertRaises(HTTPError): _get_artifact(100)
def test_get_artifact(self): obs = _get_artifact(-1) exp = (None, False, 'Artifact does not exist') self.assertEqual(obs, exp)