def returnMyselfVirtual(self):
     return MinBoolUser()
    def testMinBoolUser(self):
        mbuTrue = MinBoolUser()
        mbuFalse = MinBoolUser()
        mbuTrue.setMinBool(True)
        self.assertEqual(mbuFalse.minBool(), False)
        self.assertEqual(mbuTrue.minBool(), True)
        self.assertEqual(mbuTrue.callInvertedMinBool(), False)

        self.assertEqual(mbuTrue.minBool() == True, True)
        self.assertEqual(False == mbuFalse.minBool(), True)
        self.assertEqual(mbuTrue.minBool() == mbuFalse.minBool(), False)

        self.assertEqual(mbuFalse.minBool() != True, True)
        self.assertEqual(True != mbuFalse.minBool(), True)
        self.assertEqual(mbuTrue.minBool() != mbuFalse.minBool(), True)
示例#3
0
    def testMinBoolUser(self):
        mbuTrue = MinBoolUser()
        mbuFalse = MinBoolUser()
        mbuTrue.setMinBool(True)
        self.assertEqual(mbuFalse.minBool(), False)
        self.assertEqual(mbuTrue.minBool(), True)
        self.assertEqual(mbuTrue.callInvertedMinBool(), False)

        self.assertEqual(mbuTrue.minBool() == True, True)
        self.assertEqual(False == mbuFalse.minBool(), True)
        self.assertEqual(mbuTrue.minBool() == mbuFalse.minBool(), False)

        self.assertEqual(mbuFalse.minBool() != True, True)
        self.assertEqual(True != mbuFalse.minBool(), True)
        self.assertEqual(mbuTrue.minBool() != mbuFalse.minBool(), True)