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