Exemplo n.º 1
0
    def test_check_raises(self):
        checkres = checks.check_raises(
            "text = :raises: Exception if conditions", "fakefile")
        self.assertIsNotNone(checkres)

        checkres = checks.check_raises(
            "text = :raises Exception: if conditions", "fakefile")
        self.assertIsNone(checkres)
Exemplo n.º 2
0
    def test_check_raises(self):
        checkres = checks.check_raises(
            "text = :raises: Exception if conditions", "fakefile")
        self.assertIsNotNone(checkres)

        checkres = checks.check_raises(
            "text = :raises Exception: if conditions", "fakefile")
        self.assertIsNone(checkres)