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