Exam 200-901 | Question id=6188 | Application Deployment and Security |
A function my_func() returns True when it executes normally. Which Python snippet tests my_func()?
A. |
def test_func(self):
self.assertTrue(my_func())
| |
B. |
def test_func(self):
self.assertFalse(my_func())
| |
C. |
def test_func(self):
self.assertEqual(my_func(), '{true}')
| |
D. |
def test_func(self):
self.assertRaises(my_func())
|