Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
 def test_get_artifact(self):
     obs = _get_artifact(-1)
     exp = (None, False, 'Artifact does not exist')
     self.assertEqual(obs, exp)
Ejemplo n.º 4
0
 def test_get_artifact(self):
     obs = _get_artifact(-1)
     exp = (None, False, 'Artifact does not exist')
     self.assertEqual(obs, exp)