2023-08-23 11:11:51 -04:00
|
|
|
import unittest
|
|
|
|
|
2023-08-23 12:02:52 -04:00
|
|
|
|
2023-08-23 11:11:51 -04:00
|
|
|
class Yest(unittest.TestCase):
|
|
|
|
def test_int(self):
|
|
|
|
n1 = 5
|
2023-08-23 12:02:52 -04:00
|
|
|
self.assertIsInstance(n1, int, "n1 should be an int")
|
|
|
|
int("124124")
|
2023-08-23 11:11:51 -04:00
|
|
|
a = 5
|
|
|
|
self.assertIsInstance(a, int)
|
|
|
|
|
2023-08-23 12:02:52 -04:00
|
|
|
assert isinstance(n1, int)
|
2023-08-23 11:11:51 -04:00
|
|
|
|
|
|
|
|
2023-08-23 12:02:52 -04:00
|
|
|
unittest.main()
|