Example #1
0
    def test_assert_is(self):
        x = 3
        y = x
        assert_is(x, y)

        x = 300
        assert_is(x, 300)

        assert_is(None, None)

        from testy.aliases import eq
        assert_is(eq, assert_equal)
Example #2
0
 def test_assert_is(self):
     with assert_raises(AssertionError):
         assert_is(True, False)