def test_drop_priv(cpo): utils.drop_priv(100, 100) assert cpo.called
def test_drop_priv(self, cpo): utils.drop_priv(100, 100) self.assertEqual(cpo.call_count, 1) self.assertEqual(cpo.call_args, ((100, 100), {}))
def test_drop_priv(cpo): utils.drop_priv(100, 100) assert_equal(cpo.call_count, 1)