Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)
Assert that 'expected' is not 'observed'.

src/t/e/testtools-0.9.35/testtools/tests/test_testcase.py   testtools(Download)
    def test_assertIsNot(self):
        # assertIsNot asserts that an object is not identical to another
        # object.
        self.assertIsNot(None, 42)
        self.assertIsNot([42], [42])
        self.assertIsNot(object(), object())

src/t/e/testtools-HEAD/testtools/tests/test_testcase.py   testtools(Download)
    def test_assertIsNot(self):
        # assertIsNot asserts that an object is not identical to another
        # object.
        self.assertIsNot(None, 42)
        self.assertIsNot([42], [42])
        self.assertIsNot(object(), object())

src/t/r/trove-HEAD/trove/tests/unittests/taskmanager/test_models.py   trove(Download)
                                         self.new_flavor)
        # verify
        self.assertIsNot(self.instance_task.server, orig_server)
        self.instance_task._guest.stop_db.assert_any_call(
            do_not_start_on_reboot=True)

src/s/s/sst-0.2.4/src/sst/tests/test_xvfb.py   sst(Download)
        xvfb.start()
        self.assertEqual(':%d' % xvfb.vdisplay_num, os.environ['DISPLAY'])
        self.assertIsNot(None, xvfb.proc)
 
    def test_stop(self):

src/t/r/treeshape-0.2.1/treeshape/tests/test_matchers.py   treeshape(Download)
    def test_missing_file(self):
        path = self.useFixture(FileTree({})).path
        mismatch = MatchesFileTree({'foo': {}}).match(path)
        self.assertIsNot(None, mismatch)
 
    def test_unexpected_file(self):
        path = self.useFixture(FileTree({'foo': {}, 'bar': {}})).path
        mismatch = MatchesFileTree({'bar': {}}).match(path)
        self.assertIsNot(None, mismatch)