def test_assertNotIsInstanceError(self):
        A = type('A', (object,), {})
        a = A()
        error = self.assertRaises(self.failureException,
                                  self.assertNotIsInstance, a, A)
        self.assertEqual(str(error), "%r is an instance of %s" % (a, A))
Protect resource with specified scopes.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/trial/test/test_assertions.py/TestSynchronousAssertions.test_assertNotIsInstanceError--crossover with--dataset/ETHPy150Open codalab/codalab-cli/codalab/server/oauth2_provider.py/OAuth2Provider.check_oauth